diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-13 20:04:47 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-13 20:04:47 +0400 |
| commit | 8679eaf34a791fcbb3048a77cfb22540a0d24792 (patch) | |
| tree | da455108b3c6ba2ee5e9d237c88847be4f417737 /src | |
| parent | 1ce3c1392dd10a47a003f59fbbed7c3170094336 (diff) | |
| download | niri-8679eaf34a791fcbb3048a77cfb22540a0d24792.tar.gz niri-8679eaf34a791fcbb3048a77cfb22540a0d24792.tar.bz2 niri-8679eaf34a791fcbb3048a77cfb22540a0d24792.zip | |
Revert "Allow maximizing windows with the button in the title bar (#84)"
This reverts commit 37de77de33d3edb50c4362de3db8bbc32241c719.
Turns out some GTK windows will send un/maximize requests when they
appear, and those requests go to the wrong window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/handlers/xdg_shell.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index bfc7e46d..a99b344f 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -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( |
