mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-27 21:58:18 +01:00
Layout on client unfullscreen request
This commit is contained in:
parent
d41a11347d
commit
107f4a7ff9
2 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue