]> Dogcows Code - chaz/openbox/commitdiff
Close menu on click if outside the menu.
authorScott Moynes <smoynes@nexus.carleton.ca>
Sat, 26 Jul 2003 19:58:22 +0000 (19:58 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Sat, 26 Jul 2003 19:58:22 +0000 (19:58 +0000)
I think, haven't tested.

openbox/event.c

index 366c91ad16c0610e8c1407e4fd1a7bb25fc421b4..69c85100c9c89909ddf26a45376e5a660a6576b8 100644 (file)
@@ -1010,6 +1010,10 @@ static void event_handle_menu(ObClient *client, XEvent *e)
                 }
             }
         }
+
+        /* will call the menu_hide() for each submenu as well */
+        if (!it)
+            menu_hide(menu_visible->data);
        
         break;
     case MotionNotify:
This page took 0.0272 seconds and 4 git commands to generate.