]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
Close menu on click if outside the menu.
[chaz/openbox] / 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.019857 seconds and 4 git commands to generate.