fix: fullscreen x11 games opening as floating/tiled windows
This commit is contained in:
parent
8450e89de4
commit
200074e580
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue