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 692548 - Quartz: Cursor doesn't reset when the mouse leaves a toplevel window
Quartz: Cursor doesn't reset when the mouse leaves a toplevel window
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Quartz
3.6.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-01-25 19:13 UTC by Daniel Sabo
Modified: 2013-08-08 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Always reset the cursor when it leaves a toplevel window (884 bytes, patch)
2013-02-14 03:22 UTC, Daniel Sabo
none Details | Review

Description Daniel Sabo 2013-01-25 19:13:54 UTC
OSX cursors are set application wide, so the window needs to turn off its custom cursor when the mouse leaves it. However GDK doesn't have a mechanism for setting the cursor when the mouse exits a toplevel window. Instead this patch just resets the cursor to the standard arrow whenever a NSMouseExited is sent to a toplevel.

Because OSX doesn't support fullscreen grabs there is never a case where the cursor should stay set outside of a GDK window.

(This bug also exists in GTK2, and the same patch can be applied cleanly to GTK2)
Comment 1 Daniel Sabo 2013-02-14 03:22:10 UTC
Created attachment 235979 [details] [review]
Always reset the cursor when it leaves a toplevel window

Apparently I forgot to actually attach the patch
Comment 2 Michael Natterer 2013-02-14 09:16:27 UTC
Good catch, please add a small comment why this is needed and push to
master, gtk-2-6 and gtk-2-24.
Comment 3 Michael Natterer 2013-02-14 09:16:46 UTC
gtk-3-6 even
Comment 4 Cody Russell 2013-08-07 19:01:17 UTC
Any reason this hasn't been committed yet?
Comment 5 Daniel Sabo 2013-08-08 04:57:43 UTC
I've been busy with other things and I haven't had an up to date gtk-master build on OSX to test / push from.
Comment 6 Cody Russell 2013-08-08 14:40:50 UTC
I committed this to master, gtk-3-8, and gtk-2-24 on Daniel's behalf.  Thanks very much for the patch!