GNOME Bugzilla – Bug 605569
No motion notify while LMB is down and mouse is outside of window
Last modified: 2018-02-10 03:39:07 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...
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.
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.