]> Dogcows Code - chaz/openbox/commitdiff
more fixes
authorScott Moynes <smoynes@nexus.carleton.ca>
Sat, 26 Jul 2003 14:48:10 +0000 (14:48 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Sat, 26 Jul 2003 14:48:10 +0000 (14:48 +0000)
openbox/menu.c

index 2e3fb30bdb13b81afc3f6aa3acadc66f6e77185b..7220c37b487183bfdd0ec076e10f78b788c7c3f0 100644 (file)
@@ -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;
 }
This page took 0.025451 seconds and 4 git commands to generate.