Kevin Kofler 0da408
--- src/gui/kernel/qclipboard_x11.cpp.sav	2014-04-25 09:52:03.855693228 +0200
Kevin Kofler 0da408
+++ src/gui/kernel/qclipboard_x11.cpp	2014-04-25 09:51:58.038693777 +0200
Kevin Kofler 0da408
@@ -548,7 +548,8 @@ bool QX11Data::clipboardWaitForEvent(Win
Kevin Kofler 0da408
                 return false;
Kevin Kofler 0da408
 
Kevin Kofler 0da408
             XSync(X11->display, false);
Kevin Kofler 0da408
-            usleep(50000);
Kevin Kofler 0da408
+            if (!XPending(X11->display))
Kevin Kofler 0da408
+                usleep(5000);
Kevin Kofler 0da408
 
Kevin Kofler 0da408
             now.start();
Kevin Kofler 0da408