From faa3248a406b80b0d75ad85a3b80e9a800dd21dd Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Fri, 28 Feb 2025 11:43:21 +0100 Subject: [PATCH 1/2] xdg-toplevel: apply fullscreen state after mapping tiled window --- src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs b/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs index afd9376d..3142a882 100644 --- a/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs +++ b/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs @@ -376,6 +376,13 @@ impl XdgToplevel { fn map_tiled(self: &Rc) { 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) { From d683dda3fa2bcc4b2beda23ab3f0213a3e834c28 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Fri, 28 Feb 2025 12:58:19 +0100 Subject: [PATCH 2/2] xwayland: apply fullscreen state after mapping tiled window --- src/ifs/wl_surface/x_surface/xwindow.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifs/wl_surface/x_surface/xwindow.rs b/src/ifs/wl_surface/x_surface/xwindow.rs index 5d159313..7a87b269 100644 --- a/src/ifs/wl_surface/x_surface/xwindow.rs +++ b/src/ifs/wl_surface/x_surface/xwindow.rs @@ -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(); } }