feat: support multiple fullscreen windows per workspace

This commit is contained in:
Hojjat Abdollahi 2026-06-02 09:48:33 -06:00 committed by GitHub
parent 9f28a764a7
commit 28ef6bdbc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 381 additions and 308 deletions

View file

@ -2498,16 +2498,14 @@ fn cursor_sessions_for_output<'a>(
.active_space(output)
.into_iter()
.flat_map(|workspace| {
let maybe_fullscreen = workspace.get_fullscreen();
let fullscreen_cursors: Vec<_> = workspace
.get_fullscreen_surfaces()
.flat_map(|f| f.surface.cursor_sessions())
.collect();
workspace
.cursor_sessions()
.into_iter()
.chain(
maybe_fullscreen
.map(|w| w.cursor_sessions())
.into_iter()
.flatten(),
)
.chain(fullscreen_cursors)
.chain(output.cursor_sessions())
})
}