public void run() {
try {
final X11 x11 = X11.INSTANCE;
final Display display = x11.XOpenDisplay(null);
Window window = new Window(nativeHandle);
x11.XSelectInput(display, window,
new NativeLong(X11.ExposureMask |
X11.VisibilityChangeMask |
X11.StructureNotifyMask |
X11.FocusChangeMask |
//X11.PointerMotionMask |