aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Reilly1994-09-17 15:06:37 +0000
committerPaul Reilly1994-09-17 15:06:37 +0000
commit200286b15ada25a835d7cc4120f2aed64269743e (patch)
treedbadfaac4e019399e1d4463f35ab9e4897e0e45d
parentd398028fdd7c383685cd02780f7295d08eb2a764 (diff)
downloademacs-200286b15ada25a835d7cc4120f2aed64269743e.tar.gz
emacs-200286b15ada25a835d7cc4120f2aed64269743e.zip
*** empty log message ***
-rw-r--r--lwlib/xlwmenu.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index c47412848da..e53a1074638 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -1327,14 +1327,13 @@ Start (w, ev, params, num_params)
1327 if (!mw->menu.popped_up) 1327 if (!mw->menu.popped_up)
1328 { 1328 {
1329 menu_post_event = *ev; 1329 menu_post_event = *ev;
1330 pop_up_menu (mw, ev); 1330 next_release_must_exit = 0;
1331 } 1331 }
1332 else 1332 else
1333 /* If we push a button while the menu is posted semipermanently, 1333 /* If we push a button while the menu is posted semipermanently,
1334 releasing the button should always pop the menu down. */ 1334 releasing the button should always pop the menu down. */
1335 next_release_must_exit = 1; 1335 next_release_must_exit = 1;
1336 1336
1337#if 0
1338 XtCallCallbackList ((Widget)mw, mw->menu.open, NULL); 1337 XtCallCallbackList ((Widget)mw, mw->menu.open, NULL);
1339 1338
1340 /* notes the absolute position of the menubar window */ 1339 /* notes the absolute position of the menubar window */
@@ -1343,8 +1342,13 @@ Start (w, ev, params, num_params)
1343 1342
1344 /* handles the down like a move, slots are compatible */ 1343 /* handles the down like a move, slots are compatible */
1345 handle_motion_event (mw, &ev->xmotion); 1344 handle_motion_event (mw, &ev->xmotion);
1346#endif 1345 XtGrabPointer ((Widget)mw, False,
1347 1346 (PointerMotionMask | PointerMotionHintMask
1347 | ButtonReleaseMask | ButtonPressMask),
1348 GrabModeAsync, GrabModeAsync, None,
1349 mw->menu.cursor_shape,
1350 ((XButtonPressedEvent *)ev)->time);
1351 pointer_grabbed = 1;
1348} 1352}
1349 1353
1350static void 1354static void