]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix switching workspaces on multi-monitor setups (Thanks mseed)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Mar 2011 17:27:14 +0000 (18:27 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Mar 2011 17:27:14 +0000 (18:27 +0100)
Fixes #356

src/workspace.c

index d09f02771e4c84924b66e1cb94b5c137708d24a4..8104aa89fc35d6da21765408718255e5d06a0473 100644 (file)
@@ -230,8 +230,10 @@ void workspace_show(const char *num) {
     /* enable fullscreen for the target workspace. If it happens to be the
      * same one we are currently on anyways, we can stop here. */
     workspace->fullscreen_mode = CF_OUTPUT;
-    if (workspace == old)
+    if (workspace == con_get_workspace(focused)) {
+        DLOG("Not switching, already there.\n");
         return;
+    }
 
     workspace_reassign_sticky(workspace);