mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Revert "Allow maximizing windows with the button in the title bar (#84)"
This reverts commit 37de77de33.
Turns out some GTK windows will send un/maximize requests when they
appear, and those requests go to the wrong window.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user