in reply to Re: How to detect X?in thread How to detect X?
you might try sending data into the connection and see if you get the right reply back
X11::Protocol might simplify this part ;-)
/J\