Make an event loop to work more like X11 version.