From 57754572bc20769575b888565dc192c9d6e14f05 Mon Sep 17 00:00:00 2001 From: LuXu Date: Wed, 27 Oct 2021 11:00:46 +0800 Subject: Add default key-binding for DRAG_RELATIVE (#117) Ctrl-Button1 now has a relative drag using the XC_fleur cursor. XC_fleur is normally the cursor for "size all" action, which has 4 arrows pointing to 4 directions. Co-authored-by: NRK --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index e52b381..b7fe9f4 100644 --- a/commands.c +++ b/commands.c @@ -338,7 +338,7 @@ bool ci_drag(arg_t mode) if ((int)(img.w * img.zoom) <= win.w && (int)(img.h * img.zoom) <= win.h) return false; - win_set_cursor(&win, CURSOR_DRAG); + win_set_cursor(&win, mode == DRAG_ABSOLUTE ? CURSOR_DRAG_ABSOLUTE : CURSOR_DRAG_RELATIVE); win_cursor_pos(&win, &x, &y); ox = x; oy = y; -- cgit v1.2.3-70-g09d2