changeset 8861:a5e3635a9544

*** empty log message ***
author Paul Reilly <pmr@pajato.com>
date Sat, 17 Sep 1994 15:06:37 +0000
parents 8e5ef22c9438
children 1870d245f7da
files lwlib/xlwmenu.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Sat Sep 17 12:53:30 1994 +0000
+++ b/lwlib/xlwmenu.c	Sat Sep 17 15:06:37 1994 +0000
@@ -1327,14 +1327,13 @@
   if (!mw->menu.popped_up)
     {
       menu_post_event = *ev;
-      pop_up_menu (mw, ev);
+      next_release_must_exit = 0;
     }
   else
     /* If we push a button while the menu is posted semipermanently,
        releasing the button should always pop the menu down.  */
     next_release_must_exit = 1;
 
-#if 0
   XtCallCallbackList ((Widget)mw, mw->menu.open, NULL);
   
   /* notes the absolute position of the menubar window */
@@ -1343,8 +1342,13 @@
 
   /* handles the down like a move, slots are compatible */
   handle_motion_event (mw, &ev->xmotion);
-#endif
-
+  XtGrabPointer ((Widget)mw, False,
+		 (PointerMotionMask | PointerMotionHintMask
+		  | ButtonReleaseMask | ButtonPressMask),
+		 GrabModeAsync, GrabModeAsync, None,
+		 mw->menu.cursor_shape,
+		 ((XButtonPressedEvent *)ev)->time);
+  pointer_grabbed = 1;
 }
 
 static void