summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-26 04:57:41 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-26 04:57:41 +0000
commit38f8d1dd0ebecbd000b85d96eb70e8442d4a7d76 (patch)
tree575b7097238b49db8476a016dad750fa2a222374 /lwlib
parent924d90c6b12318c1e1f53a67e2adc3ab9d1f3214 (diff)
downloademacs-38f8d1dd0ebecbd000b85d96eb70e8442d4a7d76.tar.gz
(pop_up_menu): Pass a Display * to x_catch_errors, etc.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/xlwmenu.c7
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);