Fixed X11 clipboard regressions, event waiting.