Bugfix: Correctly set focus when switching between screens

This commit is contained in:
Michael Stapelberg 2009-04-08 13:48:37 +02:00
parent b98d7ab3c0
commit 4bd7667445
1 changed files with 4 additions and 1 deletions

View File

@ -505,8 +505,11 @@ void show_workspace(xcb_connection_t *conn, int workspace) {
}
/* Check if we need to change something or if were 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;