# HG changeset patch # User Richard M. Stallman # Date 783147461 0 # Node ID d09dc2f44ecbfc183fedfbae8513c3f712cec5dc # Parent 0b471201bbd42428183e3c976395be9d96660070 (pop_up_menu): Pass a Display * to x_catch_errors, etc. diff -r 0b471201bbd4 -r d09dc2f44ecb lwlib/xlwmenu.c --- a/lwlib/xlwmenu.c Wed Oct 26 04:43:33 1994 +0000 +++ b/lwlib/xlwmenu.c Wed Oct 26 04:57:41 1994 +0000 @@ -1421,6 +1421,7 @@ 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 @@ } #ifdef emacs - x_catch_errors (); + x_catch_errors (display); #endif XtGrabPointer ((Widget)mw, False, (PointerMotionMask @@ -1477,12 +1478,12 @@ 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);