summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-09-02 09:23:55 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-09-02 09:23:55 +0200
commit8ad7d16318975a46aaada5c2b4ecf22c089b88f5 (patch)
tree1b7e02f9bd508d8bff08c2ef8e670ff979e77857
parent2384a2005a60c5b992d3488cdf1075b741704744 (diff)
Respect -N / --no-menus option (broken in 2.17)
-rw-r--r--src/keyevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 44ed1e9..7b0923a 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -768,7 +768,7 @@ void feh_event_handle_generic(winwidget winwid, unsigned int state, KeySym keysy
else if (feh_is_kp(&keys.size_to_image, state, keysym, button)) {
winwidget_size_to_image(winwid);
}
- else if (feh_is_kp(&keys.toggle_menu, state, keysym, button)) {
+ else if (!opt.no_menus && feh_is_kp(&keys.toggle_menu, state, keysym, button)) {
winwidget_show_menu(winwid);
}
else if (feh_is_kp(&keys.close, state, keysym, button)) {