From: Dana Jansens Date: Sun, 28 Sep 2003 09:31:23 +0000 (+0000) Subject: make the timeout apply to releases on menu items too X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=7101e30ed8a7134ac5a8099c9ec1d7cb919edcd0;p=chaz%2Fopenbox make the timeout apply to releases on menu items too --- diff --git a/openbox/event.c b/openbox/event.c index 6c3d61bb..14afeaba 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1183,11 +1183,13 @@ static void event_handle_menu(XEvent *ev) switch (ev->type) { case ButtonRelease: - if ((e = menu_entry_frame_under(ev->xbutton.x_root, - ev->xbutton.y_root))) - menu_entry_frame_execute(e, ev->xbutton.state); - else if (menu_can_hide) - menu_frame_hide_all(); + if (menu_can_hide) { + if ((e = menu_entry_frame_under(ev->xbutton.x_root, + ev->xbutton.y_root))) + menu_entry_frame_execute(e, ev->xbutton.state); + else + menu_frame_hide_all(); + } break; case MotionNotify: if ((f = menu_frame_under(ev->xmotion.x_root,