1
0
Fork 0
forked from wry/wry

Merge pull request #387 from mahkoh/jorth/mpv-fullscreen

xdg-toplevel: apply fullscreen state after mapping tiled window
This commit is contained in:
mahkoh 2025-02-28 14:29:31 +01:00 committed by GitHub
commit 2a5fa4cd1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -282,6 +282,9 @@ impl Xwindow {
}
Change::Map => {
self.data.state.map_tiled(self.clone());
if self.data.info.fullscreen.get() {
self.clone().tl_set_fullscreen(true);
}
self.data.title_changed();
}
}

View file

@ -376,6 +376,13 @@ impl XdgToplevel {
fn map_tiled(self: &Rc<Self>) {
self.state.map_tiled(self.clone());
let fullscreen = self.states.borrow().contains(&STATE_FULLSCREEN);
if fullscreen {
if let Some(ws) = self.xdg.workspace.get() {
self.toplevel_data
.set_fullscreen2(&self.state, self.clone(), &ws);
}
}
}
pub fn prepare_toplevel_drag(&self) {