From: Scott Moynes Date: Mon, 30 Jun 2003 23:06:50 +0000 (+0000) Subject: Makes a simple click not so accidently annoying by making it not X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=19df0324a6f9083e6a8b3fd70a5ce14627bd4f6d;p=chaz%2Fopenbox Makes a simple click not so accidently annoying by making it not execute a menu action if nothing is highlighted. --- diff --git a/openbox/event.c b/openbox/event.c index 9433f3f4..bb76f2fd 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1040,9 +1040,9 @@ static void event_handle_menu(Client *client, XEvent *e) menu_control_mouseover(over, FALSE); menu_entry_render(over); over = NULL; + /* this hides the menu */ + menu_entry_fire(entry); } - /* this hides the menu */ - menu_entry_fire(entry); } break; }