]> Dogcows Code - chaz/openbox/commitdiff
don't let you use left to go "up to parent" on menus which don't have any parent
authorDana Jansens <danakj@orodu.net>
Sun, 2 Mar 2008 09:16:17 +0000 (04:16 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 2 Mar 2008 09:16:17 +0000 (04:16 -0500)
openbox/event.c

index a487e1b8fb9bc8ade4f2b5236eb17db4ca79b6c8..5c4700ae8e226a0882290e442d94d7234c77392c 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;
         }
 
This page took 0.030953 seconds and 4 git commands to generate.