Revert "Don't hide submenus immediately when unselecting the parent's entry"
[mikachu/openbox.git] / openbox / event.c
index a0d26ab..41f8eb1 100644 (file)
@@ -1841,12 +1841,7 @@ static gboolean event_handle_menu(XEvent *ev)
             (f = find_active_menu()) && f->selected == e &&
             e->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)
         {
-            ObMenuEntryFrame *u = menu_entry_frame_under(ev->xcrossing.x_root,
-                                                         ev->xcrossing.y_root);
-            /* if we're just going from one entry in the menu to the next,
-               don't unselect stuff first */
-            if (!u || e->frame != u->frame)
-                menu_frame_select(e->frame, NULL, FALSE);
+            menu_frame_select(e->frame, NULL, FALSE);
         }
         break;
     case MotionNotify: