]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t crash when above dock windows (Thanks Mirko)
authorMichael Stapelberg <michael+git@stapelberg.de>
Sun, 17 May 2009 08:54:12 +0000 (10:54 +0200)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sun, 17 May 2009 08:54:12 +0000 (10:54 +0200)
src/handlers.c

index 8316fc342997f9763ae29bd0e19a0b8e68d64df2..c45be5f46fdb99a19a004d27f4d72fc05e89c823 100644 (file)
@@ -193,7 +193,7 @@ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_
                 return 1;
         }
 
-        if (client->container->workspace != c_ws) {
+        if (client->container != NULL && client->container->workspace != c_ws) {
                 /* 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. */