aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);