From 11fabec166977f8ecd62d0fbc7ae573f3d03d752 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 26 Apr 2022 16:56:39 +0200 Subject: [PATCH] shell: Don't resize pending fullscreen surfaces --- src/shell/layout/tiling/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index 1385b25c..594d733f 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -529,7 +529,8 @@ impl TilingLayout { if let Some(geo) = geo { #[allow(irrefutable_let_patterns)] if let Kind::Xdg(xdg) = &window.toplevel() { - if xdg.current_state().map(|state| state.states.contains(XdgState::Fullscreen)).unwrap_or(false) { + if xdg.current_state().map(|state| state.states.contains(XdgState::Fullscreen)).unwrap_or(false) || + xdg.with_pending_state(|pending| pending.states.contains(XdgState::Fullscreen)).unwrap_or(false) { continue; } let ret = xdg.with_pending_state(|state| {