Skip to content

Commit

Permalink
Revert "Allow maximizing windows with the button in the title bar (#84)"
Browse files Browse the repository at this point in the history
This reverts commit 37de77d.

Turns out some GTK windows will send un/maximize requests when they
appear, and those requests go to the wrong window.
  • Loading branch information
YaLTeR committed Nov 13, 2023
1 parent 1ce3c13 commit 8679eaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/handlers/xdg_shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ impl XdgShellHandler for State {
}

fn maximize_request(&mut self, surface: ToplevelSurface) {
// FIXME

// The protocol demands us to always reply with a configure,
// regardless of we fulfilled the request or not
self.niri.layout.toggle_full_width();
surface.send_configure();
}

fn unmaximize_request(&mut self, _surface: ToplevelSurface) {
self.niri.layout.toggle_full_width();
// FIXME
}

fn fullscreen_request(
Expand Down

0 comments on commit 8679eaf

Please sign in to comment.