091d7ceeba
This patch adds some nicely weighty code for connecting to X displays and managing those connections. Attaching devices will automatically connect to their required X display. Removing all devices dependent on a given X display connection will also disconnect from that Xdisplay.