]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
Improved menu behaviour
[chaz/openbox] / openbox / event.c
index c77d968a8b3ea77f1ae33a78b06f1f1d8b319cef..ad9dade6941aa254fe2c80f7e2facb77b916271b 100644 (file)
@@ -1700,8 +1700,13 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
 
         else if (ob_keycode_match(keycode, OB_KEY_LEFT)) {
             /* Left goes to the parent menu */
-            if (frame->parent)
+            if (frame->parent) {
+                /* remove focus from the child */
                 menu_frame_select(frame, NULL, TRUE);
+                /* and put it in the parent */
+                menu_frame_select(frame->parent, frame->parent->selected,
+                                  TRUE);
+            }
             ret = TRUE;
         }
 
This page took 0.02239 seconds and 4 git commands to generate.