Bugfix: fix floating window size with hide_edge_borders (+test)

fixes #998
This commit is contained in:
Michael Stapelberg
2013-04-02 23:59:26 +02:00
parent 72f42bdc85
commit 0901720a24
2 changed files with 14 additions and 7 deletions

View File

@ -1079,6 +1079,12 @@ Rect con_border_style_rect(Con *con) {
} else {
result = (Rect){border_width, border_width, -(2 * border_width), -(2 * border_width)};
}
/* Floating windows are never adjacent to any other window, so
dont hide their border(s). This prevents bug #998. */
if (con_is_floating(con))
return result;
if (borders_to_hide & ADJ_LEFT_SCREEN_EDGE) {
result.x -= border_width;
result.width += border_width;