We can use the newly added helper function for this.
event->dnd.context->dest_window = NULL;
- windows = gdk_display_get_toplevel_windows (display);
+ windows = get_toplevels ();
_gdk_quartz_window_nspoint_to_gdk_xy (aPoint, &gx, &gy);
for (list = windows; list; list = list->next)
if (gx > wx && gy > wy && gx <= wx + ww && gy <= wy + wh)
event->dnd.context->dest_window = win;
}
-
- g_list_free (windows);
}
device = gdk_drag_context_get_device (_gdk_quartz_drag_source_context);
_gdk_root->abs_x = 0;
_gdk_root->abs_y = 0;
- windows = gdk_display_get_toplevel_windows (GDK_QUARTZ_SCREEN (screen)->display);
-
+ windows = get_toplevels ();
for (list = windows; list; list = list->next)
_gdk_quartz_window_update_position (list->data);
-
- g_list_free (windows);
}
static void