From 88329aeff478dce1b276d6135c608b61c357c9bf Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Sun, 6 Nov 2011 10:36:00 +0100 Subject: [PATCH] quartz: use get_toplevel_from_ns_event in one more place Fixup needed due to refactoring in GTK+-3.0. --- gdk/quartz/gdkevents-quartz.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 9c8052188b..9337e74fd9 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -572,22 +572,17 @@ find_toplevel_for_mouse_event (NSEvent *nsevent, gint *x, gint *y) { - NSPoint point; NSPoint screen_point; NSEventType event_type; GdkWindow *toplevel; - GdkQuartzView *view; GdkDisplay *display; GdkDeviceGrabInfo *grab; - view = (GdkQuartzView *)[[nsevent window] contentView]; - toplevel = [view gdkWindow]; + toplevel = get_toplevel_from_ns_event (nsevent, &screen_point, x, y); display = gdk_window_get_display (toplevel); event_type = [nsevent type]; - point = [nsevent locationInWindow]; - screen_point = [[nsevent window] convertBaseToScreen:point]; /* From the docs for XGrabPointer: *