From 523a726c6c2f31da36a0af985d22f3792a8c09b5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 29 Apr 2010 16:11:17 -0400 Subject: [PATCH] don't try go to selected submenu when there is nothing selected --- openbox/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.45.2