From: Michael Stapelberg Date: Sun, 20 Mar 2011 17:27:14 +0000 (+0100) Subject: Bugfix: Fix switching workspaces on multi-monitor setups (Thanks mseed) X-Git-Tag: tree-pr3~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=67b37551d8d16350b9226e12a511605abd0d5767;p=i3%2Fi3 Bugfix: Fix switching workspaces on multi-monitor setups (Thanks mseed) Fixes #356 --- diff --git a/src/workspace.c b/src/workspace.c index d09f0277..8104aa89 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -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);