Explicitly set current border width when BS_PIXEL

When a window becomes managed, if the config specifies a pixel border
style, explicitly set the current border width so it does not change
when the container changes from tiling to floating.

fixes #1266
This commit is contained in:
Tony Crisci
2014-06-27 21:20:12 -04:00
committed by Michael Stapelberg
parent 3b546d00f7
commit 7afe9cc78b
2 changed files with 7 additions and 1 deletions

View File

@ -66,7 +66,7 @@ $first = open_window;
@content = @{get_ws_content($tmp)};
ok(@content == 1, 'one container opened');
is($content[0]->{border}, 'pixel', 'border pixel by default');
is($content[0]->{current_border_width}, -1, 'border width pixels -1 (default)');
is($content[0]->{current_border_width}, 1, 'border width pixels 1 (default)');
exit_gracefully($pid);