Bugfix: Don’t use top border height twice when calculating dimensions for floating windows

This commit is contained in:
Michael Stapelberg 2011-09-17 14:09:57 +01:00
parent 1e18952d09
commit f6eaa8a580
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ void floating_enable(Con *con, bool automatic) {
/* add pixels for the decoration */ /* add pixels for the decoration */
/* TODO: dont add them when the user automatically puts new windows into /* TODO: dont add them when the user automatically puts new windows into
* 1pixel/borderless mode */ * 1pixel/borderless mode */
nc->rect.height += deco_height + 4; nc->rect.height += deco_height + 2;
nc->rect.width += 4; nc->rect.width += 4;
/* Some clients (like GIMPs color picker window) get mapped /* Some clients (like GIMPs color picker window) get mapped