layout: Fix windows on other workspaces losing activated state

This erroneous check was introduced in interactive move.
This commit is contained in:
Ivan Molodetskikh
2024-12-01 22:27:40 +03:00
parent 5ed5243be6
commit 91a42fdf58
+3 -7
View File
@@ -3692,14 +3692,10 @@ impl<W: LayoutElement> Layout<W> {
..
} => {
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.