From 91a42fdf58528f20615d83e85739835785da9506 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 1 Dec 2024 22:27:40 +0300 Subject: layout: Fix windows on other workspaces losing activated state This erroneous check was introduced in interactive move. --- src/layout/mod.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index bfe7282b..cb4bd6f2 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -3692,14 +3692,10 @@ impl Layout { .. } => { for (idx, mon) in monitors.iter_mut().enumerate() { - let is_active = self.is_active && idx == *active_monitor_idx; + let is_active = self.is_active + && idx == *active_monitor_idx + && !matches!(self.interactive_move, Some(InteractiveMoveState::Moving(_))); for (ws_idx, ws) in mon.workspaces.iter_mut().enumerate() { - let is_active = is_active - && ws_idx == mon.active_workspace_idx - && !matches!( - self.interactive_move, - Some(InteractiveMoveState::Moving(_)) - ); ws.refresh(is_active); // Cancel the view offset gesture after workspace switches, moves, etc. -- cgit