Bugfix: Only ignore enter_notify events for the parent windows when in stacking

This commit is contained in:
Michael Stapelberg 2009-02-28 01:19:50 +01:00
parent d8a6f41e39
commit 4fb4c579f8
1 changed files with 3 additions and 2 deletions

View File

@ -110,8 +110,9 @@ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_
return 1;
}
/* When in stacking, enter notifications are ignored. Focus will be changed via keyboard only. */
if (client->container->mode == MODE_STACK)
/* When in stacking, enter notifications on the parent are ignored. Focus will be changed via keyboard only. */
if (client->container->mode == MODE_STACK &&
client == table_get(byParent, event->event))
return 1;
set_focus(conn, client);