fullscreen: Use CosmicWindow for decorations

This commit is contained in:
Victoria Brekenfeld 2023-09-18 18:29:13 +02:00
parent 098dd1e37d
commit 4e1c16c384
8 changed files with 188 additions and 86 deletions

View file

@ -401,7 +401,11 @@ impl XwmHandler for Data {
{
if let Some(workspace) = self.state.common.shell.space_for_mut(&mapped) {
let (window, _) = mapped.windows().find(|(w, _)| w == &surface).unwrap();
workspace.maximize_request(&window, &output)
workspace.maximize_request(
&window,
&output,
self.state.common.event_loop_handle.clone(),
)
}
}
}
@ -436,7 +440,11 @@ impl XwmHandler for Data {
{
if let Some(workspace) = self.state.common.shell.space_for_mut(&mapped) {
let (window, _) = mapped.windows().find(|(w, _)| w == &surface).unwrap();
workspace.fullscreen_request(&window, &output)
workspace.fullscreen_request(
&window,
&output,
self.state.common.event_loop_handle.clone(),
)
}
}
}