From 702995014a0ef567e98899bda931901d98461341 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sat, 26 Jul 2003 14:48:10 +0000 Subject: [PATCH] more fixes --- openbox/menu.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openbox/menu.c b/openbox/menu.c index 2e3fb30b..7220c37b 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -552,10 +552,10 @@ void menu_control_keyboard_nav(unsigned int key) break; } case OB_KEY_LEFT: { - if (current_menu->over == NULL) - return; - current_menu->mouseover(current_menu->over->data, FALSE); - current_menu->over = NULL; + if (current_menu->over != NULL) { + current_menu->mouseover(current_menu->over->data, FALSE); + current_menu->over = NULL; + } menu_hide(current_menu); @@ -564,6 +564,9 @@ void menu_control_keyboard_nav(unsigned int key) break; } + default: + if (current_menu) + menu_hide(current_menu); } return; } -- 2.45.2