From 1fa6167f25cc5437f9bf08bc6347f3372c6bce0a Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 2 Jan 2024 15:13:59 +0000 Subject: [PATCH] xwayland: Consider fullscreen requests for unmapped windows --- src/xwayland.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/xwayland.rs b/src/xwayland.rs index 7026aa44..a0f11f87 100644 --- a/src/xwayland.rs +++ b/src/xwayland.rs @@ -443,6 +443,18 @@ impl XwmHandler for State { if let Some(workspace) = self.common.shell.space_for_mut(&mapped) { workspace.fullscreen_request(&surface, None) } + } else { + let output = self.common.last_active_seat().active_output(); + if let Some(o) = self + .common + .shell + .pending_windows + .iter_mut() + .find(|(s, _, _)| s == &surface) + .map(|(_, _, o)| o) + { + *o = Some(output); + } } }