Bugfix: Allow dock clients to reconfigure their height (Thanks Grauwolf)

This commit is contained in:
Michael Stapelberg 2009-10-23 16:07:03 +02:00
parent da97b89b31
commit 80551834d2
1 changed files with 16 additions and 0 deletions

View File

@ -361,6 +361,22 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure
return 1; 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) { if (client->fullscreen) {
LOG("Client is in fullscreen mode\n"); LOG("Client is in fullscreen mode\n");