From b6088b803e4ccd35ba712bac20b691d6f990a671 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 13 Mar 2010 16:27:03 +0100 Subject: [PATCH] ipc: correctly set "focused" for workspaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Didn’t work on empty workspaces before --- src/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5