diff options
author | Rutherther <rutherther@proton.me> | 2024-06-30 21:42:05 +0200 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-07-03 13:39:32 -0600 |
commit | aede3b294b1b78afb1ceaf2214b8cc024a775974 (patch) | |
tree | f832c522bcd0289964f0bddeabddd9aa51521dce | |
parent | 7d8c3ea3695de248aa1975def5839b0ffd34d198 (diff) |
Fix applybounds
Applybounds doesn't move client when it overlays
only with border with monitor to the right.
Apparently, c->geom.width already includes the border
as well.
-rw-r--r-- | dwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -439,9 +439,9 @@ applybounds(Client *c, struct wlr_box *bbox) c->geom.x = bbox->x + bbox->width - c->geom.width; if (c->geom.y >= bbox->y + bbox->height) c->geom.y = bbox->y + bbox->height - c->geom.height; - if (c->geom.x + c->geom.width + 2 * (int)c->bw <= bbox->x) + if (c->geom.x + c->geom.width <= bbox->x) c->geom.x = bbox->x; - if (c->geom.y + c->geom.height + 2 * (int)c->bw <= bbox->y) + if (c->geom.y + c->geom.height <= bbox->y) c->geom.y = bbox->y; } |