X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=483050fa9b49498a4ee57f0e44ddcb084f095e61;hb=3a607fad9df628ab16e0f7436dfbfc9b22634003;hp=f6d6f3b6f7a83eb3bd6cb595404e558604e98004;hpb=92a6b897a047054d8fabc8fdee9233a555accb11;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index f6d6f3b6..483050fa 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1181,6 +1181,16 @@ static void event_handle_menu(XEvent *ev) ev->xmotion.y_root))) menu_frame_select(f, e); } + { + ObMenuFrame *a; + + a = find_active_menu(); + if (a && a != f && + a->selected->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU) + { + menu_frame_select(a, NULL); + } + } break; case KeyPress: if (ev->xkey.keycode == ob_keycode(OB_KEY_ESCAPE))