From 9789187416810f851b72e75f11b9648515e76794 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Wed, 8 Jul 2026 11:39:38 +0200 Subject: [PATCH] fix: map_window_request should update pending state --- src/xwayland.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/xwayland.rs b/src/xwayland.rs index aba65ef5..25b8b0e0 100644 --- a/src/xwayland.rs +++ b/src/xwayland.rs @@ -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,