Remove assert on activating window on inactive workspace
Browse files at this commit29ddd7006b951d725b10c7cf3e54174a703fb554Parent: a09a0731 changed file +2 -3
- src/layout.rs +2 -3
src/layout.rsmodified+2 -3
| @@ -756,11 +756,10 @@ impl<W: LayoutElement> Layout<W> { | |||
| 756 | }; | 756 | }; |
| 757 | 757 | ||
| 758 | for (monitor_idx, mon) in monitors.iter_mut().enumerate() { | 758 | for (monitor_idx, mon) in monitors.iter_mut().enumerate() { |
| 759 | - for (workspace_idx, ws) in mon.workspaces.iter_mut().enumerate() { | 759 | + for (_workspace_idx, ws) in mon.workspaces.iter_mut().enumerate() { |
| 760 | if ws.has_window(window) { | 760 | if ws.has_window(window) { |
| 761 | *active_monitor_idx = monitor_idx; | 761 | *active_monitor_idx = monitor_idx; |
| 762 | - // TODO | 762 | + // FIXME: switch to this workspace if not already switching. |
| 763 | - assert_eq!(mon.active_workspace_idx, workspace_idx); | ||
| 764 | ws.activate_window(window); | 763 | ws.activate_window(window); |
| 765 | break; | 764 | break; |
| 766 | } | 765 | } |