From: Dana Jansens Date: Sun, 2 Mar 2008 09:16:17 +0000 (-0500) Subject: don't let you use left to go "up to parent" on menus which don't have any parent X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e8ce4dbb8fa8f415759745d57bb1c971ea360ec5;p=chaz%2Fopenbox don't let you use left to go "up to parent" on menus which don't have any parent --- diff --git a/openbox/event.c b/openbox/event.c index a487e1b8..5c4700ae 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1682,7 +1682,8 @@ static gboolean event_handle_menu_keyboard(XEvent *ev) else if (keycode == ob_keycode(OB_KEY_LEFT)) { /* Left goes to the parent menu */ - menu_frame_select(frame, NULL, TRUE); + if (frame->parent) + menu_frame_select(frame, NULL, TRUE); ret = TRUE; }