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 605569 - No motion notify while LMB is down and mouse is outside of window
No motion notify while LMB is down and mouse is outside of window
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.18.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-12-27 20:27 UTC by andreas
Modified: 2018-02-10 03:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Demonstration source (1.09 KB, text/x-c)
2009-12-27 20:27 UTC, andreas
  Details
Patch to fix this issue (2.82 KB, patch)
2011-09-13 11:15 UTC, Peter Clifton
none Details | Review

Description andreas 2009-12-27 20:27:31 UTC
Created attachment 150470 [details]
Demonstration source

I noticed that with gtk 2.18/win32 I'm only getting motion notify with left mouse button down when the mouse cursor is inside the window bounds. As soon as the mouse cursor leaves the window's bounds, no more motion notify messages come in. This worked correctly in gtk 2.16 under Win32.

I've attached a brief example code that shows the problem. Just hold down LMB over the foo bar label and move the mouse while holding down LMB. Motion notify events will come in now only as long as the mouse cursor is inside the window bounds. If you move the cursor outside of the window bounds, no more motion notify events will happen.

This might sound like an irrelevant problem but it is actually a very important issue. Just imagine that the selection rectangles in the Gimp won't react any more if the mouse cursor is outside of the window. That's pretty confusing for the user...
Comment 1 Peter Clifton 2011-09-13 11:15:15 UTC
Created attachment 196355 [details] [review]
Patch to fix this issue

Here is a patch which implements emulation of X11's implicit passive grabs. Possibly we could use the "real" grab code for this, but for now I've open-coded it to keep things more simple.
Comment 2 Matthias Clasen 2018-02-10 03:39:07 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.