]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Add deco_height to bsr.y (to configure the floatingcon correctly). Fixes...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Nov 2010 19:43:35 +0000 (20:43 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Nov 2010 19:43:35 +0000 (20:43 +0100)
src/handlers.c

index 1f86de0eac7a2863871e76c74d658d075ddb9ad6..ab41604d769a540e67a252d307af1dacc1badcff 100644 (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*
          * 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) {