fix: fullscreen x11 games opening as floating/tiled windows

This commit is contained in:
Hojjat 2026-05-13 17:23:58 -06:00
parent 8450e89de4
commit 200074e580

View file

@ -809,12 +809,14 @@ impl XwmHandler for State {
); );
} }
if !shell.pending_windows.iter().any(|w| w.surface == window) { 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 surface = CosmicSurface::from(window); let surface = CosmicSurface::from(window);
shell.pending_windows.push(PendingWindow { shell.pending_windows.push(PendingWindow {
surface, surface,
seat, seat,
fullscreen: None, fullscreen,
maximized: false, maximized,
sticky: false, sticky: false,
}) })
} }