From e9a9a46795a1b55cffec0793c4879581fa91bad7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 19 Mar 2011 23:19:42 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20use=20the=20workspace?= =?utf8?q?=20where=20focus=20is=20for=20deleting=20workspaces=20when=20swi?= =?utf8?q?tching=20(Thanks=20mseed)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: #353 --- src/workspace.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/workspace.c b/src/workspace.c index 4e93b92e..d09f0277 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -227,13 +227,6 @@ void workspace_show(const char *num) { } assert(old != NULL); - /* Check if the the currently focused con is on the same Output as the - * workspace we chose as 'old'. If not, use the workspace of the currently - * focused con */ - Con *ws = con_get_workspace(focused); - if (ws && ws->parent != old->parent) - old = ws; - /* 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; -- 2.39.5