diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-10-05 15:39:57 (GMT) |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 10:07:02 (GMT) |
commit | b8113220499fa8384bc2fbcc17aba59b636f2d48 (patch) | |
tree | b9b40e0cc0f3e18a3439db7fa906ba38a33aa939 /src/gui/kernel | |
parent | f955d645ff3804aa8544f94d02175deec7a0d873 (diff) | |
download | Qt-b8113220499fa8384bc2fbcc17aba59b636f2d48.zip Qt-b8113220499fa8384bc2fbcc17aba59b636f2d48.tar.gz Qt-b8113220499fa8384bc2fbcc17aba59b636f2d48.tar.bz2 |
Fix copying large data to non-Qt applications
In send_selection when we decide to use INCR properties we set the
given property value to be INCR atom, however we were also sending
SelectionNotify event containing the name of the property that the
client should watch as INCR, which is wrong, we should send the
original property that we were asked to use instead.
This fixes copying large junks of data from Qt application, for
example copying text (>200k) to gedit or images to gimp.
Task-number: QTBUG-8644
Reviewed-by: Bradley T. Hughes
(cherry picked from commit 62ee836fafe515c03b0be716585f8c2354e188f7)
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qclipboard_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qclipboard_x11.cpp b/src/gui/kernel/qclipboard_x11.cpp index 999a7c1..682b249 100644 --- a/src/gui/kernel/qclipboard_x11.cpp +++ b/src/gui/kernel/qclipboard_x11.cpp @@ -838,7 +838,7 @@ static Atom send_selection(QClipboardData *d, Atom target, Window window, Atom p ATOM(INCR), 32, PropModeReplace, (uchar *) &bytes, 1); (void)new QClipboardINCRTransaction(window, property, atomFormat, dataFormat, data, increment); - return ATOM(INCR); + return property; } // make sure we can perform the XChangeProperty in a single request |