~ruther/dwl

8ad2c920db7e2f1cb99709a8e46c968c5f526dc8 — Guido Cella 2 months ago e8bf70d
use the right cursor after move and resize

Fixes https://codeberg.org/dwl/dwl/issues/1162

Co-authored-by: DreamMaoMao <2523610504@qq.com>
1 files changed, 3 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +3 -2
@@ 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);