From: Scott Moynes Date: Sat, 26 Jul 2003 14:48:10 +0000 (+0000) Subject: more fixes X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=702995014a0ef567e98899bda931901d98461341;p=chaz%2Fopenbox more fixes --- 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; }