From: Michael Stapelberg Date: Sat, 17 Sep 2011 13:09:57 +0000 (+0100) Subject: Bugfix: Don’t use top border height twice when calculating dimensions for floating... X-Git-Tag: 4.1~158^2^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f6eaa8a5807a43f3c682e1e7b25be9eafa06cce2;p=i3%2Fi3 Bugfix: Don’t use top border height twice when calculating dimensions for floating windows --- diff --git a/src/floating.c b/src/floating.c index 0266dfa2..15ff23fc 100644 --- a/src/floating.c +++ b/src/floating.c @@ -122,7 +122,7 @@ void floating_enable(Con *con, bool automatic) { /* add pixels for the decoration */ /* TODO: don’t add them when the user automatically puts new windows into * 1pixel/borderless mode */ - nc->rect.height += deco_height + 4; + nc->rect.height += deco_height + 2; nc->rect.width += 4; /* Some clients (like GIMP’s color picker window) get mapped