more menu fixes.
authorScott Moynes <smoynes@nexus.carleton.ca>
Tue, 29 Jul 2003 01:29:12 +0000 (01:29 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Tue, 29 Jul 2003 01:29:12 +0000 (01:29 +0000)
I hate menus.

openbox/event.c

index a42432a..23d3e32 100644 (file)
@@ -1093,7 +1093,7 @@ static void event_handle_menu(ObClient *client, XEvent *e)
 
         /* will call the menu_hide() for each submenu as well */
         if (!it)
-            ((ObMenu *)menu_visible->data)->hide(menu_visible->data);
+            menu_control_keyboard_nav(ob_keycode(OB_KEY_ESCAPE));
        
         break;
     case MotionNotify: