summaryrefslogtreecommitdiffstats
path: root/client/application.cpp
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2010-07-19 10:29:47 +0300
committerAlon Levy <alevy@redhat.com>2010-07-19 10:30:19 +0300
commitce03f5449d68b2f0201dce409a81280300120069 (patch)
tree62f0877b9fd7f695253aa26f0ed046e873efbe66 /client/application.cpp
parent4f8545ed628fbb89a893297c5fdf276511284b33 (diff)
downloadspice-ce03f5449d68b2f0201dce409a81280300120069.tar.gz
spice-ce03f5449d68b2f0201dce409a81280300120069.tar.xz
spice-ce03f5449d68b2f0201dce409a81280300120069.zip
client: add clipboard support
* windows - untested * linux - small strings both ways, large implemented differently: * client to guest - support INCR * guest to client - we supply a single possibly very large property * requires server changes in next patch to work with spice-vmc
Diffstat (limited to 'client/application.cpp')
-rw-r--r--client/application.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 14ac7433..e986475f 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1325,6 +1325,12 @@ void Application::on_app_activated()
{
_active = true;
_key_handler->on_focus_in();
+ Platform::set_clipboard_listener(this);
+}
+
+void Application::on_clipboard_change()
+{
+ _client.on_clipboard_change();
}
void Application::on_app_deactivated()