Commit c5dc38c1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Tristan Van Berkom
Browse files

Protect against X errors when clearing the DND cache

This was reported as a problem in bug 609952.
parent 4815119e
......@@ -580,8 +580,14 @@ gdk_window_cache_destroy (GdkWindowCache *cache)
gdk_window_remove_filter (root_window, gdk_window_cache_filter, cache);
gdk_window_remove_filter (NULL, gdk_window_cache_shape_filter, cache);
gdk_error_trap_push ();
g_list_foreach (cache->children, (GFunc)free_cache_child,
gdk_screen_get_display (cache->screen));
gdk_flush ();
gdk_error_trap_pop ();
g_list_free (cache->children);
g_hash_table_destroy (cache->child_hash);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment