]> git.sur5r.net Git - i3/i3/commitdiff
ipc: use correct workspace in workspace change event
authorhaptix@web.de <haptix@web.de>
Sat, 30 Mar 2013 15:00:39 +0000 (16:00 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 2 Apr 2013 20:27:04 +0000 (22:27 +0200)
fixes #990

src/workspace.c

index 5a0913bfcc77852c1084fe2f2908097000714b8c..17f5ac33d27b3d4fe2ce2d7bf8404e1f920273c9 100644 (file)
@@ -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