]> Dogcows Code - chaz/openbox/commitdiff
dont leave non-submenu items selected when the mouse isnt over them
authorDana Jansens <danakj@orodu.net>
Mon, 15 Sep 2003 08:29:50 +0000 (08:29 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 15 Sep 2003 08:29:50 +0000 (08:29 +0000)
openbox/event.c

index f6d6f3b6f7a83eb3bd6cb595404e558604e98004..483050fa9b49498a4ee57f0e44ddcb084f095e61 100644 (file)
@@ -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))
This page took 0.023885 seconds and 4 git commands to generate.