Bugfix: Add deco_height to bsr.y (to configure the floatingcon correctly). Fixes t/12-floating-resize.t

This commit is contained in:
Michael Stapelberg 2010-11-28 20:43:35 +01:00
parent a120a820d1
commit 61e3415ddc

View File

@ -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* /* we actually need to apply the size/position changes to the *parent*
* container */ * container */
Rect bsr = con_border_style_rect(con); 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; bsr.height -= deco_height;
}
con = con->parent; con = con->parent;
DLOG("Container is a floating leaf node, will do that.\n"); DLOG("Container is a floating leaf node, will do that.\n");
if (event->value_mask & XCB_CONFIG_WINDOW_X) { if (event->value_mask & XCB_CONFIG_WINDOW_X) {