Skip to content

Instantly share code, notes, and snippets.

@MightyPork
Created May 30, 2016 17:04
Show Gist options
  • Select an option

  • Save MightyPork/c778d2b7fdd060ed0bd4069514b48d91 to your computer and use it in GitHub Desktop.

Select an option

Save MightyPork/c778d2b7fdd060ed0bd4069514b48d91 to your computer and use it in GitHub Desktop.
--- src/gui/kernel/qclipboard_x11.cpp.orig 2016-05-30 18:49:49.000000000 +0200
+++ src/gui/kernel/qclipboard_x11.cpp 2016-05-30 18:52:03.301296814 +0200
@@ -943,7 +943,7 @@
XEvent event;
// waiting until the clipboard manager fetches the content.
- if (!X11->clipboardWaitForEvent(ownerId, SelectionNotify, &event, 10000, true)) {
+ if (!X11->clipboardWaitForEvent(ownerId, SelectionNotify, &event, 1000, true)) {
qWarning("QClipboard: Unable to receive an event from the "
"clipboard manager in a reasonable time");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment