forked from AuroraMiddleware/gtk
Add diagnostics for XID collisions
This should help with diagnosing crashes caused by over-eager XID reuse in Xlib, see bug 581526.
This commit is contained in:
parent
a398c840be
commit
6fc6b8b4e8
@ -57,6 +57,9 @@ _gdk_xid_table_insert (GdkDisplay *display,
|
||||
display_x11->xid_ht = g_hash_table_new ((GHashFunc) gdk_xid_hash,
|
||||
(GEqualFunc) gdk_xid_equal);
|
||||
|
||||
if (g_hash_table_lookup (display_x11->xid_ht, xid))
|
||||
g_warning ("XID collision, trouble ahead");
|
||||
|
||||
g_hash_table_insert (display_x11->xid_ht, xid, data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user