Call QApplication::processEvents() before accessing the clipboard

This seems to solve long clipboard access time on X11.
Safer clipboard and X11 selection synchronization