--- gtk+-2.4.4.orig/gtk/gtkmenushell.c	2004-07-10 07:02:11.000000000 +0300
+++ gtk+-2.4.4/gtk/gtkmenushell.c	2004-08-09 14:46:10.000000000 +0300
@@ -524,6 +525,13 @@
 	      gtk_widget_event (menu_shell->parent_menu_shell, (GdkEvent*) event);
 	      return TRUE;
 	    }
+	  else if (menu_item == NULL &&
+		   event->x >= 0 && event->x <= widget->allocation.width &&
+		   event->y >= 0 && event->y <= widget->allocation.height)
+	    {
+	      /* prevent deactivation when button is released on menu borders */
+	      deactivate = FALSE;
+	    }
 
 	  /* If we ended up on an item with a submenu, leave the menu up.
 	   */
