From 67b37551d8d16350b9226e12a511605abd0d5767 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 20 Mar 2011 18:27:14 +0100 Subject: [PATCH] Bugfix: Fix switching workspaces on multi-monitor setups (Thanks mseed) Fixes #356 --- src/workspace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5