mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
Interrupted file transfer when cursor move back #4584
This commit is contained in:
@@ -257,6 +257,11 @@ Client::enter(SInt32 xAbs, SInt32 yAbs, UInt32, KeyModifierMask mask, bool)
|
||||
m_active = true;
|
||||
m_screen->mouseMove(xAbs, yAbs);
|
||||
m_screen->enter(mask);
|
||||
|
||||
if (m_sendFileThread != NULL) {
|
||||
StreamChunker::interruptFile();
|
||||
m_sendFileThread = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -265,11 +270,12 @@ Client::leave()
|
||||
m_screen->leave();
|
||||
|
||||
m_active = false;
|
||||
|
||||
|
||||
if (m_sendClipboardThread != NULL) {
|
||||
StreamChunker::interruptClipboard();
|
||||
m_sendClipboardThread = NULL;
|
||||
}
|
||||
|
||||
|
||||
m_sendClipboardThread = new Thread(
|
||||
new TMethodJob<Client>(
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user