]> Dogcows Code - chaz/openbox/commitdiff
fix flashy menus
authorDana Jansens <danakj@orodu.net>
Sat, 19 May 2007 19:18:52 +0000 (19:18 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 19 May 2007 19:18:52 +0000 (19:18 +0000)
openbox/event.c

index a063bb8c1f8951548cd5b2828f528e1f6793de9e..8f21120248af2e5d6ee7f8eb0e5e7208990cbd2d 100644 (file)
@@ -1607,6 +1607,10 @@ static gboolean event_handle_menu(XEvent *ev)
         }
         break;
     case LeaveNotify:
+        /*ignore leaves when we're already in the window */
+        if (ev->xcrossing.detail == NotifyInferior)
+            break;
+
         if ((e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window)) &&
             (f = find_active_menu()) && f->selected == e &&
             e->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)
This page took 0.027261 seconds and 4 git commands to generate.