From aabca2864d9439bc061feedd8d315b9aaac5c666 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 3 Oct 2010 21:45:45 +0200 Subject: 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. --- client/windows/platform.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'client/windows/platform.cpp') diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp index db47079d..580a40ae 100644 --- a/client/windows/platform.cpp +++ b/client/windows/platform.cpp @@ -1011,6 +1011,7 @@ bool Platform::on_clipboard_request(uint32_t type) void Platform::on_clipboard_release() { SetEvent(clipboard_event); + set_clipboard_owner(owner_none); } static bool has_console = false; -- cgit