quartz: use get_toplevel_from_ns_event in one more place

Fixup needed due to refactoring in GTK+-3.0.
This commit is contained in:
Kristian Rietveld 2011-11-06 10:36:00 +01:00
parent b78658c310
commit 88329aeff4

View File

@ -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:
*