]> git.sur5r.net Git - i3/i3/blobdiff - src/layout.c
Bugfix: Repeatedly try to find screens if none are available (Thanks mxf)
[i3/i3] / src / layout.c
index e70d0f49682217376d50d1512d87217eda3030d4..4f132aea8cc2d8d1f54f2f902b2880a1c6429c5a 100644 (file)
@@ -188,6 +188,11 @@ void reposition_client(xcb_connection_t *conn, Client *client) {
         if (client->workspace->screen == (screen = get_screen_containing(client->rect.x, client->rect.y)))
                 return;
 
+        if (screen == NULL) {
+                LOG("Boundary checking disabled, no screen found for (%d, %d)\n", client->rect.x, client->rect.y);
+                return;
+        }
+
         LOG("Client is on workspace %p with screen %p\n", client->workspace, client->workspace->screen);
         LOG("but screen at %d, %d is %p\n", client->rect.x, client->rect.y, screen);
         floating_assign_to_workspace(client, &workspaces[screen->current_workspace]);