aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSED4906 <37986786+SED4906@users.noreply.github.com>2023-11-12 09:27:11 -0800
committerGitHub <noreply@github.com>2023-11-12 09:27:11 -0800
commit37de77de33d3edb50c4362de3db8bbc32241c719 (patch)
treee483588a7c406bf0f40fb3c4890aef018ff0a8e3 /src
parentf1b6941736893df86a1f13fe1eba9d6c37052331 (diff)
downloadniri-37de77de33d3edb50c4362de3db8bbc32241c719.tar.gz
niri-37de77de33d3edb50c4362de3db8bbc32241c719.tar.bz2
niri-37de77de33d3edb50c4362de3db8bbc32241c719.zip
Allow maximizing windows with the button in the title bar (#84)
Diffstat (limited to 'src')
-rw-r--r--src/handlers/xdg_shell.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs
index a99b344f..bfc7e46d 100644
--- a/src/handlers/xdg_shell.rs
+++ b/src/handlers/xdg_shell.rs
@@ -91,15 +91,14 @@ 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) {
- // FIXME
+ self.niri.layout.toggle_full_width();
}
fn fullscreen_request(