diff lwlib/xlwmenu.c @ 199:169c0442b401 r20-3b26

Import from CVS: tag r20-3b26
author cvs
date Mon, 13 Aug 2007 10:00:33 +0200
parents acd284d43ca1
children e45d5e7c476e
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Mon Aug 13 10:00:04 2007 +0200
+++ b/lwlib/xlwmenu.c	Mon Aug 13 10:00:33 2007 +0200
@@ -44,6 +44,10 @@
 
 #ifdef NEED_MOTIF
 #include <Xm/Xm.h>
+#if XmVersion < 1002 /* 1.1 or ancient */
+#undef XmFONTLIST_DEFAULT_TAG
+#define XmFONTLIST_DEFAULT_TAG XmSTRING_DEFAULT_CHARSET
+#endif /* XmVersion < 1.2 */
 #endif
 #include "xlwmenuP.h"
 
@@ -2285,11 +2289,11 @@
 	    highlighted_pos->x = ws->width;
 	}
 
-      if (hit && !*hit_return && (val->type != SEPARATOR_TYPE))
+      if (hit && !*hit_return)
 	{
-	  if (horizontal_p && hit->x > start.x && hit->x < where.x)
+	  if (horizontal_p && hit->x > start.x && hit->x <= where.x)
 	    *hit_return = val;
-	  else if (!horizontal_p && hit->y > start.y && hit->y < where.y)
+	  else if (!horizontal_p && hit->y > start.y && hit->y <= where.y)
 	    *hit_return = val;
 	}