]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly set focus when switching between screens
authorMichael Stapelberg <michael+x200@stapelberg.de>
Wed, 8 Apr 2009 11:48:37 +0000 (13:48 +0200)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Wed, 8 Apr 2009 11:48:37 +0000 (13:48 +0200)
src/commands.c

index bc3f277cceb88c2d8397e646e23685d53092cd19..583a2b77cc0584e71398c08fc520e74c1a57b556 100644 (file)
@@ -505,8 +505,11 @@ void show_workspace(xcb_connection_t *conn, int workspace) {
         }
 
         /* Check if we need to change something or if we’re already there */
-        if (c_ws->screen->current_workspace == (workspace-1))
+        if (c_ws->screen->current_workspace == (workspace-1)) {
+                if (CUR_CELL->currently_focused != NULL)
+                        set_focus(conn, CUR_CELL->currently_focused, true);
                 return;
+        }
 
         t_ws->screen->current_workspace = workspace-1;