diff options
Diffstat (limited to 'src')
| -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 | { |