changeset 5881:678a8470e4d1

(xmenu_show) [USE_X_TOOLKIT]: Test event.xmotion.x_root in the MotionNotify case.
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Thu, 10 Feb 1994 09:34:37 +0000
parents 7051027369d6
children 319a7fcb7609
files src/xmenu.c
diffstat 1 files changed, 15 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Thu Feb 10 08:35:48 1994 +0000
+++ b/src/xmenu.c	Thu Feb 10 09:34:37 1994 +0000
@@ -940,14 +940,21 @@
 	  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)))
 	  {