GNOME Bugzilla – Bug 646930
win32: button press/release events sent to wrong window in case of grab
Last modified: 2017-01-30 16:15:39 UTC
Created attachment 185341 [details] [review] proposed fix, working with gtk+ 2.24.4 The following scenario is broken under Windows: - grab a window in response to a button_press event - move the mouse pointer out of the toplevel window - release the mouse button => the button_release event corresponding to the last action is not sent to the window that has the grab, but to the root window. This used to work, but has been broken by previous changes. Attaching a patch (working against 2.24.4) which re-adds the necessary propagations.
This is not quite right, it should be handled generally in find_window_for_mouse_event, as I'm doing on the gtk-2-24-win32 branch. Grabs work there.
Thank you. Looking forward to the forward-port of gtk-2-24-win32 in 3.2.
It seems this was indeed fixed in GTK+ 3, with commit 915e9d57f981031d8cfaec344356f54acda405dc