Bugfix: Fix switching workspaces on multi-monitor setups (Thanks mseed)

Fixes #356
This commit is contained in:
Michael Stapelberg 2011-03-20 18:27:14 +01:00
parent 38173749f8
commit 67b37551d8
1 changed files with 3 additions and 1 deletions

View 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);