From 4fb4c579f8e2642db15fca6a77999e0d56e8dd6a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 28 Feb 2009 01:19:50 +0100 Subject: [PATCH] Bugfix: Only ignore enter_notify events for the parent windows when in stacking --- src/handlers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 2a390c05..4ee50626 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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); -- 2.39.5