]> git.sur5r.net Git - i3/i3/blobdiff - src/scratchpad.c
Merge branch 'master' into next
[i3/i3] / src / scratchpad.c
index 6bba823fa2893512ad1f66924414935b08f0c744..5072280bf35b47fbc1b99c55e0f234c83a445740 100644 (file)
@@ -60,7 +60,8 @@ void scratchpad_move(Con *con) {
 
     /* 4: Fix focus. Normally, when moving a window to a different output, the
      * destination output gets focused. In this case, we don’t want that. */
-    con_focus(focus_next);
+    if (con_get_workspace(focus_next) == con_get_workspace(focused))
+        con_focus(focus_next);
 }
 
 /*