diff options
| author | Fred Pierresteguy | 1994-02-10 09:34:37 +0000 |
|---|---|---|
| committer | Fred Pierresteguy | 1994-02-10 09:34:37 +0000 |
| commit | 9106ccf1ff325f95bb2c950f4cc5b6617acde1eb (patch) | |
| tree | c57b62cc120c8e23ed301f1c9b25f9c9778332a8 | |
| parent | 8921525e34ede9e01247bf457276ae58a986a84c (diff) | |
| download | emacs-9106ccf1ff325f95bb2c950f4cc5b6617acde1eb.tar.gz emacs-9106ccf1ff325f95bb2c950f4cc5b6617acde1eb.zip | |
(xmenu_show) [USE_X_TOOLKIT]: Test event.xmotion.x_root in the MotionNotify
case.
| -rw-r--r-- | src/xmenu.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 027b4f7f68c..06bc1300402 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -940,14 +940,21 @@ xmenu_show (f, val, x, y, menubarp, vw) | |||
| 940 | process_expose_from_menu (event); | 940 | process_expose_from_menu (event); |
| 941 | else | 941 | else |
| 942 | if (event.type == MotionNotify | 942 | if (event.type == MotionNotify |
| 943 | && menubarp | 943 | && menubarp |
| 944 | && ((event.xmotion.y_root | 944 | && ((event.xmotion.y_root |
| 945 | >= (f->display.x->widget->core.y | 945 | >= (f->display.x->widget->core.y |
| 946 | + f->display.x->widget->core.border_width)) | 946 | + f->display.x->widget->core.border_width)) |
| 947 | && (event.xmotion.y_root | 947 | && (event.xmotion.y_root |
| 948 | < (f->display.x->widget->core.y | 948 | < (f->display.x->widget->core.y |
| 949 | + f->display.x->widget->core.border_width | 949 | + f->display.x->widget->core.border_width |
| 950 | + f->display.x->menubar_widget->core.height))) | 950 | + f->display.x->menubar_widget->core.height))) |
| 951 | && ((event.xmotion.x_root | ||
| 952 | >= (f->display.x->widget->core.x | ||
| 953 | + f->display.x->widget->core.border_width)) | ||
| 954 | && (event.xmotion.x_root | ||
| 955 | < (f->display.x->widget->core.x | ||
| 956 | + f->display.x->widget->core.border_width | ||
| 957 | + f->display.x->widget->core.width))) | ||
| 951 | && (event.xmotion.x_root >= item_length | 958 | && (event.xmotion.x_root >= item_length |
| 952 | || event.xmotion.x_root < (x - 4))) | 959 | || event.xmotion.x_root < (x - 4))) |
| 953 | { | 960 | { |