]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Allow dock clients to reconfigure their height (Thanks Grauwolf)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 23 Oct 2009 14:07:03 +0000 (16:07 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 23 Oct 2009 14:07:03 +0000 (16:07 +0200)
src/handlers.c

index d4e04b68aa596ea0f607c2303820c7473f9ed055..8d1bd5ba94b47c6704ab985ab8ad6bcc37d27fa3 100644 (file)
@@ -361,6 +361,22 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure
                 return 1;
         }
 
+        /* Dock clients can be reconfigured in their height */
+        if (client->dock) {
+                LOG("Reconfiguring height of this dock client\n");
+
+                if (!(event->value_mask & XCB_CONFIG_WINDOW_HEIGHT)) {
+                        LOG("Ignoring configure request, no height given\n");
+                        return 1;
+                }
+
+                client->desired_height = event->height;
+                render_workspace(conn, c_ws->screen, c_ws);
+                xcb_flush(conn);
+
+                return 1;
+        }
+
         if (client->fullscreen) {
                 LOG("Client is in fullscreen mode\n");