ipc: correctly set "focused" for workspaces

Didn’t work on empty workspaces before
This commit is contained in:
Michael Stapelberg 2010-03-13 16:27:03 +01:00
parent b7da973d09
commit b6088b803e
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ IPC_HANDLER(get_workspaces) {
y(bool, ws->output->current_workspace == ws); y(bool, ws->output->current_workspace == ws);
ystr("focused"); ystr("focused");
y(bool, (last_focused != NULL && last_focused->workspace == ws)); y(bool, c_ws == ws);
ystr("rect"); ystr("rect");
y(map_open); y(map_open);