aboutsummaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 7c573273..2b2c9fc1 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -1372,9 +1372,8 @@ impl<W: LayoutElement> Layout<W> {
for (monitor_idx, mon) in monitors.iter_mut().enumerate() {
for (workspace_idx, ws) in mon.workspaces.iter_mut().enumerate() {
- if ws.has_window(window) {
+ if ws.activate_window(window) {
*active_monitor_idx = monitor_idx;
- ws.activate_window(window);
// If currently in the middle of a vertical swipe between the target workspace
// and some other, don't switch the workspace.