diff options
author | Paul Reilly <pmr@pajato.com> | 1994-09-17 15:06:37 +0000 |
---|---|---|
committer | Paul Reilly <pmr@pajato.com> | 1994-09-17 15:06:37 +0000 |
commit | f637b36701380a912880b45c259882c2b2a4cb4d (patch) | |
tree | 0204b4f21b1a0488b232e8bf756b50d3dc7787d3 /lwlib/xlwmenu.c | |
parent | 6c91b7af591bc7d1a189646f4cd4c60daf9b0446 (diff) | |
download | emacs-f637b36701380a912880b45c259882c2b2a4cb4d.tar.gz |
*** empty log message ***
Diffstat (limited to 'lwlib/xlwmenu.c')
-rw-r--r-- | lwlib/xlwmenu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index c47412848da..e53a1074638 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -1327,14 +1327,13 @@ Start (w, ev, params, num_params) if (!mw->menu.popped_up) { menu_post_event = *ev; - pop_up_menu (mw, ev); + next_release_must_exit = 0; } else /* If we push a button while the menu is posted semipermanently, releasing the button should always pop the menu down. */ next_release_must_exit = 1; -#if 0 XtCallCallbackList ((Widget)mw, mw->menu.open, NULL); /* notes the absolute position of the menubar window */ @@ -1343,8 +1342,13 @@ Start (w, ev, params, num_params) /* handles the down like a move, slots are compatible */ handle_motion_event (mw, &ev->xmotion); -#endif - + XtGrabPointer ((Widget)mw, False, + (PointerMotionMask | PointerMotionHintMask + | ButtonReleaseMask | ButtonPressMask), + GrabModeAsync, GrabModeAsync, None, + mw->menu.cursor_shape, + ((XButtonPressedEvent *)ev)->time); + pointer_grabbed = 1; } static void |