{
return GDK_DISPLAY_GET_CLASS (display)->get_root_window (display);
}
-
-GList *
-gdk_display_get_toplevel_windows (GdkDisplay *display)
-{
- GdkWindow * root_window;
- GList *new_list = NULL;
- GList *tmp_list;
-
- root_window = gdk_display_get_root_window (display);
-
- tmp_list = root_window->children;
- while (tmp_list)
- {
- GdkWindow *w = tmp_list->data;
-
- if (w->window_type != GDK_WINDOW_FOREIGN)
- new_list = g_list_prepend (new_list, w);
- tmp_list = tmp_list->next;
- }
-
- return new_list;
-}