Hello, I've written an input driver for a touch screen controller. It works, but now I need to use SwitchMode from the user code, and need to XListInputDevices. The problem is, how can I get the Display * needed by the above function? thanks!