summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_x11.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-15 17:46:01 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-16 08:50:25 (GMT)
commitf5c2e6374b9f6c39a2e535f7282c7d7160591ba6 (patch)
tree6a1eb38c59b5901281a69954724aa462e206b390 /src/gui/kernel/qapplication_x11.cpp
parentb8ff02a67ebd8246253823b53cfed98eef400547 (diff)
downloadQt-f5c2e6374b9f6c39a2e535f7282c7d7160591ba6.zip
Qt-f5c2e6374b9f6c39a2e535f7282c7d7160591ba6.tar.gz
Qt-f5c2e6374b9f6c39a2e535f7282c7d7160591ba6.tar.bz2
Implemented the SAVE_TARGET in QClipboard on X11
Added support for the simpliest SAVE_TARGET mechanizm allowing us to work nicely with clipboard managers, so that when Qt application that owns the clipboard exits we delegate the content to the clipboard manager if there is one. The current implementation doesn't specify which targets to give to the manager, so it will try to fetch as much as possible. Also, right now we do not support the TARGET_SIZES target, meaning that the manager doesn't know how much data it is going to fetch, so it will try to fetch everything even if it can take a lot of time. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qapplication_x11.cpp')
-rw-r--r--src/gui/kernel/qapplication_x11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp
index 601cd11..bbce438 100644
--- a/src/gui/kernel/qapplication_x11.cpp
+++ b/src/gui/kernel/qapplication_x11.cpp
@@ -190,10 +190,12 @@ static const char * x11_atomnames = {
"TARGETS\0"
"MULTIPLE\0"
"TIMESTAMP\0"
+ "SAVE_TARGETS\0"
"CLIP_TEMPORARY\0"
"_QT_SELECTION\0"
"_QT_CLIPBOARD_SENTINEL\0"
"_QT_SELECTION_SENTINEL\0"
+ "CLIPBOARD_MANAGER\0"
"RESOURCE_MANAGER\0"