Merge branch 'master' into next

This commit is contained in:
Michael Stapelberg
2013-04-02 23:59:48 +02:00
2 changed files with 14 additions and 7 deletions

View File

@ -1087,6 +1087,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;