shell: Don't resize pending fullscreen surfaces

This commit is contained in:
Victoria Brekenfeld 2022-04-26 16:56:39 +02:00
parent 9f767a1d13
commit 11fabec166

View file

@ -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| {