diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs index 1b037b10a..bd3563755 100644 --- a/window/src/os/wayland/window.rs +++ b/window/src/os/wayland/window.rs @@ -191,13 +191,11 @@ impl PendingEvent { state, states ); - match (self.window_state, state) { - (None, s) if s == WindowState::default() => {} - _ => { - self.window_state.replace(state); - changed = true; - } + if self.window_state.is_none() && state != WindowState::default() { + changed = true; } + // Always set it to avoid losing non-default -> default transitions + self.window_state.replace(state); changed } }