aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-06-02 22:02:09 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-06-02 22:02:09 +0200
commit4a749913c628bc64da61ea4624f68e12ef1d8bb9 (patch)
tree6d4692f2e1a0b5d7d58a92acb25893eb30dac83b
parent4954ac6e9d0eb1e0adfd4853ee4048bf18e540a4 (diff)
make pointer constraints actually workmain
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index cbc803b..ce74ca9 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1258,8 +1258,8 @@ cursorwarptoconstrainthint(void)
Client *c = NULL;
toplevel_from_wlr_surface(constraint->surface, &c, NULL);
if (c) {
- lx -= c->geom.x;
- ly -= c->geom.y;
+ lx += c->geom.x;
+ ly += c->geom.y;
}
wlr_cursor_warp(cursor, NULL, lx, ly);