diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-28 09:31:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-28 09:31:23 +0000 |
| commit | 7101e30ed8a7134ac5a8099c9ec1d7cb919edcd0 (patch) | |
| tree | 126141b89300eeeefe0d33d46c2d6c4bab046f3b /openbox/event.c | |
| parent | b8ba1cff1fdd5447984e83708865f8ba6c7f223a (diff) | |
make the timeout apply to releases on menu items too
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 12 |
1 files changed, 7 insertions, 5 deletions
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, |
