aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.def.h5
-rw-r--r--main.c12
2 files changed, 5 insertions, 12 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
diff --git a/main.c b/main.c
index 9fdda54..a17e615 100644
--- a/main.c
+++ b/main.c
@@ -92,10 +92,6 @@ timeout_t timeouts[] = {
{ { 0, 0 }, false, clear_resize },
};
-cursor_t imgcursor[3] = {
- CURSOR_ARROW, CURSOR_ARROW, CURSOR_ARROW
-};
-
/**************************
function implementations
**************************/
@@ -917,14 +913,6 @@ int main(int argc, char *argv[])
filecnt = fileidx;
fileidx = options->startnum < filecnt ? options->startnum : 0;
- for (i = 0; i < ARRLEN(buttons); i++) {
- if (buttons[i].cmd == i_cursor_navigate) {
- imgcursor[0] = CURSOR_LEFT;
- imgcursor[2] = CURSOR_RIGHT;
- break;
- }
- }
-
win_init(&win);
img_init(&img, &win);
arl_init(&arl);