From 4d27bfa3e8b27b92ad877dacd2a6a7ce48ad99ec Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Fri, 5 Oct 2012 11:35:35 +0200 Subject: [PATCH] Update floating rectangle when border_width changes --- tree.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tree.c b/tree.c index 5588369..bb9eabd 100644 --- a/tree.c +++ b/tree.c @@ -261,6 +261,12 @@ void apply_layout(desktop_t *d, node_t *n, xcb_rectangle_t rect) if (n->client->fullscreen) return; + if (is_floating(n->client) && n->client->border_width != border_width) { + int ds = 2 * (border_width - n->client->border_width); + n->client->floating_rectangle.width += ds; + n->client->floating_rectangle.height += ds; + } + if (borderless_monocle && is_tiled(n->client) && d->layout == LAYOUT_MONOCLE) n->client->border_width = 0; else