GNOME Bugzilla – Bug 314995
menus that popup under the mouse don't stay up
Last modified: 2005-09-02 02:01:57 UTC
When a popup menu appears under the mouse cursor it will often disappear as soon as the mouse button is released. This can be demonstrated easily with a GtkComboBox that has appears-as-list set to false. Click on the combo box a few times and, at least in some part of the button, the menu will flash up then disappear as soon as the mouse button is released. While combo boxes on win32 should normally have appears-as-list set to true and work fine, this does (I think) indicate a larger problem in GtkMenu.
Created attachment 51639 [details] simple test case that creates a GtkComboBox with appears-as-list off
Fixed in gtk-2-8 and HEAD: 2005-09-02 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of cursor position also in root window coordinates. Prune out superfluous WM_MOUSEMOVE messages even earlier, based on root window coordinates. Windows sends WM_MOUSEMOVE messages after a new window has ben mapped below the cursor even if the mouse doesn't move. We used to generate GDK_MOTION_NOTIFY in these cases. This confused at least gtk_menu_motion_notify(). (#314995) Fix will be in GTK+ 2.8.4.