Allow maximizing windows with the button in the title bar (#84)

This commit is contained in:
SED4906
2023-11-12 09:27:11 -08:00
committed by GitHub
parent f1b6941736
commit 37de77de33
+2 -3
View File
@@ -91,15 +91,14 @@ impl XdgShellHandler for State {
} }
fn maximize_request(&mut self, surface: ToplevelSurface) { fn maximize_request(&mut self, surface: ToplevelSurface) {
// FIXME
// The protocol demands us to always reply with a configure, // The protocol demands us to always reply with a configure,
// regardless of we fulfilled the request or not // regardless of we fulfilled the request or not
self.niri.layout.toggle_full_width();
surface.send_configure(); surface.send_configure();
} }
fn unmaximize_request(&mut self, _surface: ToplevelSurface) { fn unmaximize_request(&mut self, _surface: ToplevelSurface) {
// FIXME self.niri.layout.toggle_full_width();
} }
fn fullscreen_request( fn fullscreen_request(