Mercurial > emacs
changeset 9079:ac51b5072431
*** empty log message ***
author | Paul Reilly <pmr@pajato.com> |
---|---|
date | Sun, 25 Sep 1994 00:22:16 +0000 |
parents | 283534a85f5a |
children | 870ac6d473a4 |
files | lwlib/xlwmenu.c |
diffstat | 1 files changed, 16 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlib/xlwmenu.c Sat Sep 24 23:24:52 1994 +0000 +++ b/lwlib/xlwmenu.c Sun Sep 25 00:22:16 1994 +0000 @@ -30,6 +30,8 @@ #include <X11/bitmaps/gray> #include "xlwmenuP.h" +static int disable_add_grab, disable_grab_pointer; + static int pointer_grabbed; static XEvent menu_post_event; @@ -1446,7 +1448,8 @@ { XEvent *ev = (XEvent *) event; - XtAddGrab ((Widget) mw, True, True); + if (!disable_add_grab) + XtAddGrab ((Widget) mw, True, True); /* notes the absolute position of the menubar window */ mw->menu.windows [0].x = ev->xmotion.x_root - ev->xmotion.x; @@ -1456,12 +1459,18 @@ #ifdef emacs x_catch_errors (); #endif - XtGrabPointer ((Widget)mw, False, - (PointerMotionMask | PointerMotionHintMask | ButtonReleaseMask - | ButtonPressMask), - GrabModeAsync, GrabModeAsync, None, mw->menu.cursor_shape, - event->time); - pointer_grabbed = 1; + if (!disable_grab_pointer) + { + XtGrabPointer ((Widget)mw, False, + (PointerMotionMask + | PointerMotionHintMask + | ButtonReleaseMask + | ButtonPressMask), + GrabModeAsync, GrabModeAsync, None, + mw->menu.cursor_shape, + event->time); + pointer_grabbed = 1; + } #ifdef emacs if (x_had_errors_p ()) {