436d72e994
This seems more stabile than using one display connection for all threads. Still get an occasional Xlib: unexpected async reply error, unfortunately.