From a1955e8d8816743857c94630bb4695af59154929 Mon Sep 17 00:00:00 2001 From: Daniel Sabo Date: Thu, 8 Aug 2013 09:36:28 -0500 Subject: [PATCH] Reset cursor when mouse leaves a toplevel window. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692548 --- gdk/quartz/gdkevents-quartz.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index fcda072441..bfd043012e 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -1494,8 +1494,11 @@ gdk_event_translate (GdkEvent *event, } break; - case NSMouseEntered: case NSMouseExited: + if (WINDOW_IS_TOPLEVEL (window)) + [[NSCursor arrowCursor] set]; + /* fall through */ + case NSMouseEntered: return_val = synthesize_crossing_event (window, event, nsevent, x, y, x_root, y_root); break;