mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout: Fix windows on other workspaces losing activated state
This erroneous check was introduced in interactive move.
This commit is contained in:
+3
-7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user