Layout on client unfullscreen request

This commit is contained in:
Ottatop 2024-03-21 17:08:13 -05:00
parent d41a11347d
commit 107f4a7ff9
2 changed files with 10 additions and 0 deletions

View file

@ -721,6 +721,7 @@ impl XdgShellHandler for State {
if !window.with_state(|state| state.fullscreen_or_maximized.is_fullscreen()) {
window.toggle_fullscreen();
self.request_layout(&output);
}
}
@ -751,6 +752,9 @@ impl XdgShellHandler for State {
if window.with_state(|state| state.fullscreen_or_maximized.is_fullscreen()) {
window.toggle_fullscreen();
if let Some(output) = window.output(self) {
self.request_layout(&output);
}
}
}

View file

@ -341,6 +341,9 @@ impl XwmHandler for State {
if !window.with_state(|state| state.fullscreen_or_maximized.is_fullscreen()) {
window.toggle_fullscreen();
if let Some(output) = window.output(self) {
self.request_layout(&output);
}
}
}
@ -358,6 +361,9 @@ impl XwmHandler for State {
if window.with_state(|state| state.fullscreen_or_maximized.is_fullscreen()) {
window.toggle_fullscreen();
if let Some(output) = window.output(self) {
self.request_layout(&output);
}
}
}