Bugfix: only honor _NET_ACTIVE_WINDOW for visible windows (+test) (Thanks Tucos)

fixes #774
This commit is contained in:
Michael Stapelberg
2012-08-12 16:08:31 +02:00
parent 1e49f1b08a
commit 68a23b9577
2 changed files with 63 additions and 0 deletions

View File

@ -635,6 +635,15 @@ static void handle_client_message(xcb_client_message_event_t *event) {
return;
}
Con *ws = con_get_workspace(con);
if (!workspace_is_visible(ws)) {
DLOG("Workspace not visible, ignoring _NET_ACTIVE_WINDOW\n");
return;
}
if (ws != con_get_workspace(focused))
workspace_show(ws);
con_focus(con);
tree_render();
} else if (event->type == A_I3_SYNC) {