From: Fred Pierresteguy Date: Thu, 10 Feb 1994 09:34:37 +0000 (+0000) Subject: (xmenu_show) [USE_X_TOOLKIT]: Test event.xmotion.x_root in the MotionNotify X-Git-Tag: emacs-19.34~9970 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9106ccf1ff325f95bb2c950f4cc5b6617acde1eb;p=emacs.git (xmenu_show) [USE_X_TOOLKIT]: Test event.xmotion.x_root in the MotionNotify case. --- 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) process_expose_from_menu (event); else if (event.type == MotionNotify - && menubarp - && ((event.xmotion.y_root - >= (f->display.x->widget->core.y - + f->display.x->widget->core.border_width)) - && (event.xmotion.y_root - < (f->display.x->widget->core.y - + f->display.x->widget->core.border_width - + f->display.x->menubar_widget->core.height))) + && menubarp + && ((event.xmotion.y_root + >= (f->display.x->widget->core.y + + f->display.x->widget->core.border_width)) + && (event.xmotion.y_root + < (f->display.x->widget->core.y + + f->display.x->widget->core.border_width + + f->display.x->menubar_widget->core.height))) + && ((event.xmotion.x_root + >= (f->display.x->widget->core.x + + f->display.x->widget->core.border_width)) + && (event.xmotion.x_root + < (f->display.x->widget->core.x + + f->display.x->widget->core.border_width + + f->display.x->widget->core.width))) && (event.xmotion.x_root >= item_length || event.xmotion.x_root < (x - 4))) {