fix: map_window_request should update pending state
This commit is contained in:
parent
aabf1cdc08
commit
9789187416
1 changed files with 11 additions and 3 deletions
|
|
@ -807,9 +807,17 @@ impl XwmHandler for State {
|
|||
*context,
|
||||
);
|
||||
}
|
||||
if !shell.pending_windows.iter().any(|w| w.surface == window) {
|
||||
let fullscreen = window.is_fullscreen().then(|| seat.active_output());
|
||||
let maximized = window.is_maximized();
|
||||
let fullscreen = window.is_fullscreen().then(|| seat.active_output());
|
||||
let maximized = window.is_maximized();
|
||||
if let Some(pending) = shell
|
||||
.pending_windows
|
||||
.iter_mut()
|
||||
.find(|w| w.surface == window)
|
||||
{
|
||||
pending.seat = seat;
|
||||
pending.fullscreen = fullscreen;
|
||||
pending.maximized = maximized;
|
||||
} else {
|
||||
let surface = CosmicSurface::from(window);
|
||||
shell.pending_windows.push(PendingWindow {
|
||||
surface,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue