From 3e1a86c3c1873be030d3ebb0764fefee74077a7a Mon Sep 17 00:00:00 2001 From: XinyuHou Date: Thu, 1 Sep 2016 11:15:58 +0100 Subject: [PATCH] #5502 Reverted disabled sending clipboard on inactive grab This reverts commit 2ad4b896f3bd98aeff6021206ce4ba22a45a542c. --- src/lib/client/Client.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/client/Client.cpp b/src/lib/client/Client.cpp index 3894cc36..9ad878ee 100644 --- a/src/lib/client/Client.cpp +++ b/src/lib/client/Client.cpp @@ -704,6 +704,14 @@ Client::handleClipboardGrabbed(const Event& event, void*) m_ownClipboard[info->m_id] = true; m_sentClipboard[info->m_id] = false; m_timeClipboard[info->m_id] = 0; + + // if we're not the active screen then send the clipboard now, + // otherwise we'll wait until we leave. + Clipboard clipboard; + if (!m_active) { + fillClipboard(info->m_id, &clipboard); + sendClipboard(info->m_id, &clipboard); + } } void