From 731e3cfd219e9d01cad4533364a45d7ca4a18a72 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 31 Mar 2025 13:03:16 +0800 Subject: [PATCH] fix: reset pointer after warp cursor --- maomao.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maomao.c b/maomao.c index 5d76278..99529bb 100644 --- a/maomao.c +++ b/maomao.c @@ -6612,6 +6612,8 @@ void warp_cursor(const Client *c) { cursor->y < c->geom.y || cursor->y > c->geom.y + c->geom.height) 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); + } void warp_cursor_to_selmon(const Monitor *m) {