#5502 Reverted disabled sending clipboard on inactive grab

This reverts commit 2ad4b896f3.
This commit is contained in:
XinyuHou 2016-09-01 11:15:58 +01:00 committed by Andrew Nelless
parent 11d5691bca
commit 3e1a86c3c1
1 changed files with 8 additions and 0 deletions

View File

@ -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