GNOME Bugzilla – Bug 630032
Fix bugs that crashed gdk_display_close() on x11
Last modified: 2010-09-19 03:00:03 UTC
Basically device manager dispose/finalization/refcounting was messed up. The other device backends may still be broken. Not sure how to test those.
Created attachment 170574 [details] [review] Fix bugs that crashed gdk_display_close() on x11 * _gdk_device_set_associated_device() did not allow NULL device * GdkDisplay should dispose device manager to avoid devices trying to touch the display in finalize * GdkDeviceManagerXI did not ref devices in id hash * GdkDisplayX11 did not ref devices in ->input_devices
To test XI2, you have to call gdk_enable_multidevice() before gtk_init(). I've made corresponding changes to GdkDeviceManagerXI2 (nuke all devices in dispose instead of finalize).