don't let you use left to go "up to parent" on menus which don't have any parent
[mikachu/openbox.git] / openbox / event.c
index a487e1b..5c4700a 100644 (file)
@@ -1682,7 +1682,8 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
 
         else if (keycode == ob_keycode(OB_KEY_LEFT)) {
             /* Left goes to the parent menu */
-            menu_frame_select(frame, NULL, TRUE);
+            if (frame->parent)
+                menu_frame_select(frame, NULL, TRUE);
             ret = TRUE;
         }