From 4bd766744519f4a0c566f522747a09046e4cd393 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 8 Apr 2009 13:48:37 +0200 Subject: [PATCH] Bugfix: Correctly set focus when switching between screens --- src/commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;