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) {
|
||||
let fullscreen = window.is_fullscreen().then(|| seat.active_output());
|
||||
let maximized = window.is_maximized();
|
||||
let surface = CosmicSurface::from(window);
|
||||
shell.pending_windows.push(PendingWindow {
|
||||
surface,
|
||||
seat,
|
||||
fullscreen: None,
|
||||
maximized: false,
|
||||
fullscreen,
|
||||
maximized,
|
||||
sticky: false,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue