summaryrefslogtreecommitdiffstats
path: root/client/red_client.cpp
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-03 21:45:45 +0200
committerHans de Goede <hdegoede@redhat.com>2010-10-04 11:49:14 +0200
commitaabca2864d9439bc061feedd8d315b9aaac5c666 (patch)
tree96060fe068e9d46e8029fdb125d5a842badf82c7 /client/red_client.cpp
parenta2492d5ae347941b7a5bc13ad5a4de1c006b4ff0 (diff)
downloadspice-aabca2864d9439bc061feedd8d315b9aaac5c666.tar.gz
spice-aabca2864d9439bc061feedd8d315b9aaac5c666.tar.xz
spice-aabca2864d9439bc061feedd8d315b9aaac5c666.zip
spicec-x11: Force processing of ownerchange event when releasing the cb
Make sure we process the XFixesSetSelectionOwnerNotify event caused by us setting the clipboard owner to none, directly after setting the owner to none. Otherwise we may end up changing the clipboard owner to none, after it has already been re-owned because the XFixesSetSelectionOwnerNotify event to owner none is event is still pending when we set the new owner, and then changes the owner back to none once processed messing up our clipboard ownership state tracking. I saw this happening when doing copy twice in succession inside the guest.
Diffstat (limited to 'client/red_client.cpp')
-rw-r--r--client/red_client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp
index a022499f..8e7dfe0e 100644
--- a/client/red_client.cpp
+++ b/client/red_client.cpp
@@ -1133,12 +1133,11 @@ void RedClient::dispatch_agent_message(VDAgentMessage* msg, void* data)
break;
case VD_AGENT_CLIPBOARD_RELEASE:
if (Platform::get_clipboard_owner() != Platform::owner_guest) {
- LOG_WARN("received clipboard release from guest while clipboard is not owned by guest");
+ LOG_INFO("received clipboard release from guest while clipboard is not owned by guest");
break;
}
Platform::on_clipboard_release();
- Platform::set_clipboard_owner(Platform::owner_none);
break;
default:
DBG(0, "Unsupported message type %u size %u", msg->type, msg->size);