aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorArthur Williams <taaparthur@gmail.com>2021-10-03 22:38:06 +0200
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2021-10-13 02:05:00 +0200
commit5c6947c1c6df76ab8438ac27377559da79ab1eab (patch)
tree0c2ba1c69c4ffbcea220506351bff1ee22b37430 /config.def.h
parentcd710f583f5ab8650fa2e41c08dc9a6332a5680f (diff)
downloadnsxiv-5c6947c1c6df76ab8438ac27377559da79ab1eab.tar.zst
Make imgcursor a config variable.
Previously, the value of imgcursor was determined by where a pointer binding was set to a ci_cursor_navigate. If it was then the pointer would change to left/right arrows depending on the position relative to the window. Now the user has full control of over it which also allows them to preserve the behavior in case they wrap the function.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 1a23fc8..39135ff 100644
--- a/config.def.h
+++ b/config.def.h
@@ -164,4 +164,9 @@ static const button_t buttons[] = {
{ 0, 5, g_zoom, -1 },
};
+/* mouse cursor on left, middle and right part of the window */
+static const cursor_t imgcursor[3] = {
+ CURSOR_LEFT, CURSOR_ARROW, CURSOR_RIGHT
+};
+
#endif