xwayland: Consider fullscreen requests for unmapped windows

This commit is contained in:
Victoria Brekenfeld 2024-01-02 15:13:59 +00:00 committed by Victoria Brekenfeld
parent e7c4405dfd
commit 1fa6167f25

View file

@ -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);
}
}
}