ref #15 implement x11 message handling