]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Only ignore enter_notify events for the parent windows when in stacking
authorMichael Stapelberg <michael+git@stapelberg.de>
Sat, 28 Feb 2009 00:19:50 +0000 (01:19 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sat, 28 Feb 2009 00:19:50 +0000 (01:19 +0100)
src/handlers.c

index 2a390c056a39e80e70eb8fbe647ee18da24a4ed3..4ee5062642a6c7386e4f8ba8c5b54b36bc486216 100644 (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);