diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-21 20:46:00 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-21 20:58:30 +0400 |
| commit | 29ddd7006b951d725b10c7cf3e54174a703fb554 (patch) | |
| tree | 1eb87c5da5584ca0f27105c6341eac503e72fa83 | |
| parent | a09a073d2de147e76e1a6e05ce3cc9bd1dff743d (diff) | |
| download | niri-29ddd7006b951d725b10c7cf3e54174a703fb554.tar.gz niri-29ddd7006b951d725b10c7cf3e54174a703fb554.tar.bz2 niri-29ddd7006b951d725b10c7cf3e54174a703fb554.zip | |
Remove assert on activating window on inactive workspace
| -rw-r--r-- | src/layout.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout.rs b/src/layout.rs index 627ea8c7..a85b7dd7 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -756,11 +756,10 @@ impl<W: LayoutElement> Layout<W> { }; for (monitor_idx, mon) in monitors.iter_mut().enumerate() { - for (workspace_idx, ws) in mon.workspaces.iter_mut().enumerate() { + for (_workspace_idx, ws) in mon.workspaces.iter_mut().enumerate() { if ws.has_window(window) { *active_monitor_idx = monitor_idx; - // TODO - assert_eq!(mon.active_workspace_idx, workspace_idx); + // FIXME: switch to this workspace if not already switching. ws.activate_window(window); break; } |
