mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-10 00:11:43 +08:00
#4768 Interrupted both clipboards
This commit is contained in:
@@ -509,9 +509,11 @@ Server::switchScreen(BaseClientProxy* dst,
|
||||
// if already sending clipboard, we need to interupt it, otherwise
|
||||
// clipboard data could be corrupted on the other side
|
||||
if (m_sendClipboardThread != NULL) {
|
||||
StreamChunker::interruptClipboard();
|
||||
StreamChunker::setClipboardInterrupt(true);
|
||||
m_sendClipboardThread->wait();
|
||||
delete m_sendClipboardThread;
|
||||
m_sendClipboardThread = NULL;
|
||||
StreamChunker::setClipboardInterrupt(false);
|
||||
}
|
||||
|
||||
// send the clipboard data to new active screen
|
||||
|
||||
Reference in New Issue
Block a user