From: Dana Jansens Date: Thu, 26 Jun 2003 07:22:29 +0000 (+0000) Subject: clear the over item in the menu when executing shit X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0423b057ed754abca28033cc5f0621e8266c34db;p=chaz%2Fopenbox clear the over item in the menu when executing shit --- diff --git a/openbox/event.c b/openbox/event.c index 3ff1fd1d..2a47ef09 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1001,6 +1001,7 @@ static void event_handle_menu(Client *client, XEvent *e) else menu_control_mouseover(over, FALSE); menu_entry_render(over); + over = NULL; } /* if (top->hide) @@ -1032,6 +1033,15 @@ static void event_handle_menu(Client *client, XEvent *e) m->location.x, e->xbutton.y_root - m->location.y))) { + if (over) { + if (over->parent->mouseover) + over->parent->mouseover(over, FALSE); + else + menu_control_mouseover(over, FALSE); + menu_entry_render(over); + over = NULL; + } + /* this hides the menu */ menu_entry_fire(entry); } break; @@ -1044,6 +1054,7 @@ static void event_handle_menu(Client *client, XEvent *e) else menu_control_mouseover(over, FALSE); menu_entry_render(over); + over = NULL; } /* if (top->hide)