]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
don't try go to selected submenu when there is nothing selected
[chaz/openbox] / openbox / event.c
index 41f3b08ed26639029cbe13e0805a8da7b90b1a8e..8a5720a54108996130b114012ada3bf3b65c5b81 100644 (file)
@@ -1862,7 +1862,8 @@ static gboolean event_handle_menu_input(XEvent *ev)
 
             else if (sym == XK_Right) {
                 /* Right goes to the selected submenu */
-                if (frame->selected->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)
+                if (frame->selected &&
+                    frame->selected->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)
                 {
                     /* make sure it is visible */
                     menu_frame_select(frame, frame->selected, TRUE);
This page took 0.023344 seconds and 4 git commands to generate.