From: haptix@web.de Date: Sat, 30 Mar 2013 15:00:39 +0000 (+0100) Subject: ipc: use correct workspace in workspace change event X-Git-Tag: 4.6~58 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2926ddb69f5101e117e5830ebcd1380e9da3154c;p=i3%2Fi3 ipc: use correct workspace in workspace change event fixes #990 --- diff --git a/src/workspace.c b/src/workspace.c index 5a0913bf..17f5ac33 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -442,7 +442,7 @@ static void _workspace_show(Con *workspace) { } else con_focus(next); - ipc_send_workspace_focus_event(workspace, old); + ipc_send_workspace_focus_event(workspace, current); DLOG("old = %p / %s\n", old, (old ? old->name : "(null)")); /* Close old workspace if necessary. This must be done *after* doing