]> git.sur5r.net Git - i3/i3/commitdiff
ipc: correctly set "focused" for workspaces
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Mar 2010 15:27:03 +0000 (16:27 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Mar 2010 15:27:03 +0000 (16:27 +0100)
Didn’t work on empty workspaces before

src/ipc.c

index f396c43bbae3aec352fe3c70274f20153ffde349..f74f437e559a37dfeb716110200b9cf8bce6b586 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -155,7 +155,7 @@ IPC_HANDLER(get_workspaces) {
                 y(bool, ws->output->current_workspace == ws);
 
                 ystr("focused");
-                y(bool, (last_focused != NULL && last_focused->workspace == ws));
+                y(bool, c_ws == ws);
 
                 ystr("rect");
                 y(map_open);