summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-29 07:16:27 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-29 07:16:27 +0000
commitf01fb1daa98b8ef011ba60c5e17668576ae2aa56 (patch)
treecd7626ca38beec02d41e7594c4350df2194e3ba4
parent7190f14945a54c44a609ffb8116d951394daa13b (diff)
downloademacs-f01fb1daa98b8ef011ba60c5e17668576ae2aa56.tar.gz
(Drag): Do nothing unless menu.popped_up field is set.
-rw-r--r--lwlib/xlwmenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index 8ed2974003d..4083183e31f 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -1371,7 +1371,8 @@ Drag (w, ev, params, num_params)
Cardinal *num_params;
{
XlwMenuWidget mw = (XlwMenuWidget)w;
- handle_motion_event (mw, &ev->xmotion);
+ if (mw->menu.popped_up)
+ handle_motion_event (mw, &ev->xmotion);
}
static void