]> Dogcows Code - chaz/openbox/commitdiff
don't try go to selected submenu when there is nothing selected
authorDana Jansens <danakj@orodu.net>
Thu, 29 Apr 2010 20:11:17 +0000 (16:11 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 29 Apr 2010 20:14:16 +0000 (16:14 -0400)
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.023912 seconds and 4 git commands to generate.