mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-21 10:27:36 +02:00
#4768 Interrupted both clipboards
This commit is contained in:
parent
518fc7a676
commit
1a76acd446
6 changed files with 67 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue