diff options
author | LuXu <oliver_lew@outlook.com> | 2021-10-27 11:00:46 +0800 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2021-10-27 09:02:07 +0600 |
commit | 57754572bc20769575b888565dc192c9d6e14f05 (patch) | |
tree | 30b655219d372924b1820a1733401278b49d9944 /commands.c | |
parent | 1f01c670c5fac1829e46ed8bc6b033e3680e645f (diff) |
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 <nrk@disroot.org>
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |