mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Consider the border width when centering pseudo-tiled clients
This commit is contained in:
parent
2c50a15455
commit
da0fc3d11d
1 changed files with 4 additions and 0 deletions
4
tree.c
4
tree.c
|
@ -77,7 +77,11 @@ void apply_layout(monitor_t *m, desktop_t *d, node_t *n, xcb_rectangle_t rect, x
|
|||
if (n->client->pseudo_tiled) {
|
||||
/* pseudo-tiled clients */
|
||||
r = n->client->floating_rectangle;
|
||||
r.width += 2 * n->client->border_width;
|
||||
r.height += 2 * n->client->border_width;
|
||||
center_rectangle(&r, rect);
|
||||
r.x -= n->client->border_width;
|
||||
r.y -= n->client->border_width;
|
||||
} else {
|
||||
/* tiled clients */
|
||||
r = rect;
|
||||
|
|
Loading…
Add table
Reference in a new issue