From: Michael Stapelberg Date: Sun, 28 Nov 2010 19:43:35 +0000 (+0100) Subject: Bugfix: Add deco_height to bsr.y (to configure the floatingcon correctly). Fixes... X-Git-Tag: tree-pr1~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61e3415ddc060f1e35693df032e007b513dc8e7f;p=i3%2Fi3 Bugfix: Add deco_height to bsr.y (to configure the floatingcon correctly). Fixes t/12-floating-resize.t --- diff --git a/src/handlers.c b/src/handlers.c index 1f86de0e..ab41604d 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -371,8 +371,10 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure /* we actually need to apply the size/position changes to the *parent* * container */ Rect bsr = con_border_style_rect(con); - if (con->border_style == BS_NORMAL) + if (con->border_style == BS_NORMAL) { + bsr.y += deco_height; bsr.height -= deco_height; + } con = con->parent; DLOG("Container is a floating leaf node, will do that.\n"); if (event->value_mask & XCB_CONFIG_WINDOW_X) {