From 4a749913c628bc64da61ea4624f68e12ef1d8bb9 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 2 Jun 2023 22:02:09 +0200 Subject: make pointer constraints actually work --- dwl.c | 4 ++-- 1 file 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); -- cgit v1.2.3-54-g00ecf