add example of X11 event handling