diff options
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c index b634e6f..b850497 100644 --- a/src/events.c +++ b/src/events.c @@ -166,7 +166,7 @@ static void feh_event_handle_ButtonPress(XEvent * ev) && (winwid->type == WIN_TYPE_SLIDESHOW)) slideshow_change_image(winwid, SLIDE_PREV); } else if (ev->xbutton.button == opt.next_button) { - D(3, ("Next Button 5 Press event\n")); + D(3, ("Next Button Press event\n")); if ((winwid != NULL) && (winwid->type == WIN_TYPE_SLIDESHOW)) slideshow_change_image(winwid, SLIDE_NEXT); @@ -220,7 +220,7 @@ static void feh_event_handle_ButtonRelease(XEvent * ev) winwidget_sanitise_offsets(winwid); winwidget_render_image(winwid, 0, 1); } - } else { + } else if (opt.mode == MODE_NEXT) { opt.mode = MODE_NORMAL; if (winwid != NULL) winwid->mode = MODE_NORMAL; @@ -260,6 +260,11 @@ static void feh_event_handle_ButtonRelease(XEvent * ev) } } } + } else { + if (winwid != NULL) { + opt.mode = MODE_NORMAL; + winwid->mode = MODE_NORMAL; + } } } else if ((ev->xbutton.button == opt.rotate_button) || (ev->xbutton.button == opt.zoom_button)) { |