summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-04-29 16:11:17 -0400
committerDana Jansens <danakj@orodu.net>2010-04-29 16:14:16 -0400
commit523a726c6c2f31da36a0af985d22f3792a8c09b5 (patch)
tree34943f74f3a5f5e66a4896ee8e1242944250a0bf /openbox/event.c
parentb9b0284e3e4651618039e9a25aa7056f9596cb01 (diff)
don't try go to selected submenu when there is nothing selected
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c3
1 files changed, 2 insertions, 1 deletions
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);