mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Update floating rectangle when border_width changes
This commit is contained in:
parent
ce4761c1a2
commit
4d27bfa3e8
1 changed files with 6 additions and 0 deletions
6
tree.c
6
tree.c
|
@ -261,6 +261,12 @@ void apply_layout(desktop_t *d, node_t *n, xcb_rectangle_t rect)
|
|||
if (n->client->fullscreen)
|
||||
return;
|
||||
|
||||
if (is_floating(n->client) && n->client->border_width != border_width) {
|
||||
int ds = 2 * (border_width - n->client->border_width);
|
||||
n->client->floating_rectangle.width += ds;
|
||||
n->client->floating_rectangle.height += ds;
|
||||
}
|
||||
|
||||
if (borderless_monocle && is_tiled(n->client) && d->layout == LAYOUT_MONOCLE)
|
||||
n->client->border_width = 0;
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue