From: Michael Stapelberg Date: Sat, 13 Mar 2010 15:27:03 +0000 (+0100) Subject: ipc: correctly set "focused" for workspaces X-Git-Tag: 3.e~6^2~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6088b803e4ccd35ba712bac20b691d6f990a671;p=i3%2Fi3 ipc: correctly set "focused" for workspaces Didn’t work on empty workspaces before --- diff --git a/src/ipc.c b/src/ipc.c index f396c43b..f74f437e 100644 --- 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);