After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 314995 - menus that popup under the mouse don't stay up
menus that popup under the mouse don't stay up
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.8.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-09-01 02:33 UTC by Tim Evans
Modified: 2005-09-02 02:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple test case that creates a GtkComboBox with appears-as-list off (779 bytes, text/plain)
2005-09-01 02:35 UTC, Tim Evans
Details

Description Tim Evans 2005-09-01 02:33:49 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.
Comment 1 Tim Evans 2005-09-01 02:35:04 UTC
Created attachment 51639 [details]
simple test case that creates a GtkComboBox with appears-as-list off
Comment 2 Tor Lillqvist 2005-09-02 02:01:57 UTC
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.