Separate border width for floating windows
Floating windows already had their own border style, but the width was the same for all windows. The configuration directives 'new_window' and 'new_float' can now be used simultaneously to have different border widths for floating and tiled windows. fixes #1244
This commit is contained in:
committed by
Michael Stapelberg
parent
e707e0a5fa
commit
89dd868e82
@ -1090,8 +1090,13 @@ Rect con_border_style_rect(Con *con) {
|
||||
int border_width = con->current_border_width;
|
||||
DLOG("The border width for con is set to: %d\n", con->current_border_width);
|
||||
Rect result;
|
||||
if (con->current_border_width < 0)
|
||||
border_width = config.default_border_width;
|
||||
if (con->current_border_width < 0) {
|
||||
if (con_is_floating(con)) {
|
||||
border_width = config.default_floating_border_width;
|
||||
} else {
|
||||
border_width = config.default_border_width;
|
||||
}
|
||||
}
|
||||
DLOG("Effective border width is set to: %d\n", border_width);
|
||||
/* Shortcut to avoid calling con_adjacent_borders() on dock containers. */
|
||||
int border_style = con_border_style(con);
|
||||
|
Reference in New Issue
Block a user