From: Michael Stapelberg Date: Wed, 8 Apr 2009 11:48:37 +0000 (+0200) Subject: Bugfix: Correctly set focus when switching between screens X-Git-Tag: 3.a-bf1~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4bd766744519f4a0c566f522747a09046e4cd393;p=i3%2Fi3 Bugfix: Correctly set focus when switching between screens --- diff --git a/src/commands.c b/src/commands.c index bc3f277c..583a2b77 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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;