]> Dogcows Code - chaz/openbox/commitdiff
Makes a simple click not so accidently annoying by making it not
authorScott Moynes <smoynes@nexus.carleton.ca>
Mon, 30 Jun 2003 23:06:50 +0000 (23:06 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Mon, 30 Jun 2003 23:06:50 +0000 (23:06 +0000)
execute a menu action if nothing is highlighted.

openbox/event.c

index 9433f3f454febc6aae878c5bcf7da91c476d03db..bb76f2fdc0331d5a2a385816b152fb4a43a296f2 100644 (file)
@@ -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;
             }
This page took 0.025545 seconds and 4 git commands to generate.