diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-10-26 04:57:41 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-10-26 04:57:41 +0000 |
commit | 8400b9ed37a756f20200e95d775b4f09fb921611 (patch) | |
tree | 18bded9052108c317524510e800687d1b967fa5e /lwlib | |
parent | f34e2e18169f943e4380de6899c6e8623dd84d43 (diff) | |
download | emacs-8400b9ed37a756f20200e95d775b4f09fb921611.tar.gz |
(pop_up_menu): Pass a Display * to x_catch_errors, etc.
Diffstat (limited to 'lwlib')
-rw-r--r-- | lwlib/xlwmenu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 28a23bae6ed..d06321257f9 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -1421,6 +1421,7 @@ pop_up_menu (mw, event) int h; int borderwidth = mw->menu.shadow_thickness; Screen* screen = XtScreen (mw); + Display *display = XtDisplay (mw); next_release_must_exit = 0; @@ -1465,7 +1466,7 @@ pop_up_menu (mw, event) } #ifdef emacs - x_catch_errors (); + x_catch_errors (display); #endif XtGrabPointer ((Widget)mw, False, (PointerMotionMask @@ -1477,12 +1478,12 @@ pop_up_menu (mw, event) event->time); pointer_grabbed = 1; #ifdef emacs - if (x_had_errors_p ()) + if (x_had_errors_p (display)) { pointer_grabbed = 0; XtUngrabPointer ((Widget)mw, event->time); } - x_uncatch_errors (); + x_uncatch_errors (display); #endif handle_motion_event (mw, (XMotionEvent*)event); |