From: Dana Jansens Date: Thu, 29 Apr 2010 20:11:17 +0000 (-0400) Subject: don't try go to selected submenu when there is nothing selected X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=523a726c6c2f31da36a0af985d22f3792a8c09b5;p=chaz%2Fopenbox don't try go to selected submenu when there is nothing selected --- diff --git a/openbox/event.c b/openbox/event.c index 41f3b08e..8a5720a5 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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);