bugfix: default floating border regression
Fixes a bug where a normal floating default border is not applied when
the default tiling border is set to a pixel value.
This bug was introduced in this commit:
43b447855d
Consider motif border for floating geometry
Fixes a comment that claimed default floating border could override
motif hints, which was never the case.
fixes #1305
This commit is contained in:
committed by
Michael Stapelberg
parent
b7f4ac769b
commit
196e748e94
@ -447,10 +447,9 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
|
||||
|
||||
if (want_floating) {
|
||||
DLOG("geometry = %d x %d\n", nc->geometry.width, nc->geometry.height);
|
||||
/* motif hints will be applied only when `new_float` is `normal` or not
|
||||
* specified */
|
||||
bool automatic_border = (config.default_floating_border != BS_NORMAL &&
|
||||
motif_border_style == BS_NORMAL);
|
||||
/* automatically set the border to the default value if a motif border
|
||||
* was not specified */
|
||||
bool automatic_border = (motif_border_style == BS_NORMAL);
|
||||
|
||||
floating_enable(nc, automatic_border);
|
||||
}
|
||||
|
Reference in New Issue
Block a user