From: Michael Stapelberg Date: Fri, 23 Oct 2009 14:07:03 +0000 (+0200) Subject: Bugfix: Allow dock clients to reconfigure their height (Thanks Grauwolf) X-Git-Tag: 3.d~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80551834d29274c5ad2f4d90068e4653e63fff99;p=i3%2Fi3 Bugfix: Allow dock clients to reconfigure their height (Thanks Grauwolf) --- 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");