From 8ad2c920db7e2f1cb99709a8e46c968c5f526dc8 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 13 Sep 2026 19:06:54 +0200 Subject: [PATCH] use the right cursor after move and resize Fixes https://codeberg.org/dwl/dwl/issues/1162 Co-authored-by: DreamMaoMao <2523610504@qq.com> --- dwl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 9e293b8..7bffb83 100644 --- a/dwl.c +++ b/dwl.c @@ -703,10 +703,11 @@ buttonpress(struct wl_listener *listener, void *data) break; case WL_POINTER_BUTTON_STATE_RELEASED: /* If you released any buttons, we exit interactive move/resize mode. */ - /* TODO: should reset to the pointer focus's current setcursor */ if (!locked && cursor_mode != CurNormal && cursor_mode != CurPressed) { - wlr_cursor_set_xcursor(cursor, cursor_mgr, "default"); cursor_mode = CurNormal; + /* Update the cursor */ + wlr_seat_pointer_clear_focus(seat); + motionnotify(0, NULL, 0, 0, 0, 0); /* Drop the window off on its new monitor */ selmon = xytomon(cursor->x, cursor->y); setmon(grabc, selmon, 0);