]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t ignore enter_notify events for clients on different screens (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 27 May 2009 16:19:14 +0000 (18:19 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 27 May 2009 16:19:14 +0000 (18:19 +0200)
This fixes ticket #41.

src/handlers.c

index 81fb865519b27b59836ebd2eceea324b85494e98..8f164cd2412ce54053648530614a3585fd8b228b 100644 (file)
@@ -199,11 +199,11 @@ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_
                 return 1;
         }
 
-        if (client->container != NULL && client->container->workspace != c_ws) {
+        if (client->workspace != c_ws && client->workspace->screen == c_ws->screen) {
                 /* This can happen when a client gets assigned to a different workspace than
                  * the current one (see src/mainx.c:reparent_window). Shortly after it was created,
                  * an enter_notify will follow. */
-                LOG("enter_notify for a client on a different workspace, ignoring\n");
+                LOG("enter_notify for a client on a different workspace but the same screen, ignoring\n");
                 return 1;
         }