From f5638eff2c7c23fd3bb7752ad2617f0a423858dd Mon Sep 17 00:00:00 2001 From: Squibid Date: Sat, 22 Feb 2025 12:21:30 -0600 Subject: add motionnotify after warpcursor --- dwl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 48e421c..f83cb83 100644 --- a/dwl.c +++ b/dwl.c @@ -1979,6 +1979,7 @@ focusmon(const Arg *arg) wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0, c->geom.y + c->geom.height / 2.0); } + motionnotify(0, NULL, 0, 0, 0, 0); } } @@ -2010,6 +2011,7 @@ focusstack(const Arg *arg) if (warpcursor) { wlr_cursor_warp_closest( cursor, NULL, c->geom.x + c->geom.width / 2.0, c->geom.y + c->geom.height / 2.0); + motionnotify(0, NULL, 0, 0, 0, 0); } } @@ -2210,6 +2212,7 @@ incnmaster(const Arg *arg) if (c) { wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0, c->geom.y + c->geom.height / 2.0); + motionnotify(0, NULL, 0, 0, 0, 0); } } } @@ -3141,6 +3144,7 @@ setmfact(const Arg *arg) if (c) { wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0, c->geom.y + c->geom.height / 2.0); + motionnotify(0, NULL, 0, 0, 0, 0); } } } -- cgit v1.2.1