]> git.sur5r.net Git - i3/i3/blobdiff - src/handlers.c
Don’t allow floating clients to reconfigure themselves when in fullscreen (Thanks...
[i3/i3] / src / handlers.c
index 015e716a1581430a9e3bba31ac3b946c3a082d18..5a1d6666a519f2b7ef371821ea659e746d821339 100644 (file)
@@ -478,6 +478,16 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure
                 return 1;
         }
 
+        if (client->fullscreen) {
+                LOG("Client is in fullscreen mode\n");
+
+                Rect child_rect = client->container->workspace->rect;
+                child_rect.x = child_rect.y = 0;
+                fake_configure_notify(conn, child_rect, client->child);
+
+                return 1;
+        }
+
         /* Floating clients can be reconfigured */
         if (client_is_floating(client)) {
                 i3Font *font = load_font(conn, config.font);
@@ -512,16 +522,6 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure
                 return 1;
         }
 
-        if (client->fullscreen) {
-                LOG("Client is in fullscreen mode\n");
-
-                Rect child_rect = client->container->workspace->rect;
-                child_rect.x = child_rect.y = 0;
-                fake_configure_notify(conn, child_rect, client->child);
-
-                return 1;
-        }
-
         fake_absolute_configure_notify(conn, client);
 
         return 1;