From 80551834d29274c5ad2f4d90068e4653e63fff99 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 23 Oct 2009 16:07:03 +0200 Subject: [PATCH] Bugfix: Allow dock clients to reconfigure their height (Thanks Grauwolf) --- src/handlers.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/handlers.c b/src/handlers.c index d4e04b68..8d1bd5ba 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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"); -- 2.39.5