changeset 17622:742a57e66f7d

(pop_up_menu): Update the call to x_catch_errors.
author Richard M. Stallman <rms@gnu.org>
date Fri, 02 May 1997 07:27:07 +0000
parents f043ffdbc80d
children a09fd9348b0d
files lwlib/xlwmenu.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Fri May 02 07:26:39 1997 +0000
+++ b/lwlib/xlwmenu.c	Fri May 02 07:27:07 1997 +0000
@@ -1535,6 +1535,7 @@
   int		borderwidth = mw->menu.shadow_thickness;
   Screen*	screen = XtScreen (mw);
   Display       *display = XtDisplay (mw);
+  int count;
 
   next_release_must_exit = 0;
 
@@ -1579,7 +1580,7 @@
     }
 
 #ifdef emacs
-  x_catch_errors (display);
+  count = x_catch_errors (display);
 #endif
   XtGrabPointer ((Widget)mw, False,
 		 (PointerMotionMask
@@ -1596,7 +1597,7 @@
       pointer_grabbed = 0;
       XtUngrabPointer ((Widget)mw, event->time);
     }
-  x_uncatch_errors (display);
+  x_uncatch_errors (display, count);
 #endif
 
   handle_motion_event (mw, (XMotionEvent*)event);