Interrupted file transfer when cursor move back #4584
This commit is contained in:
parent
e0903983ad
commit
646e1b52eb
|
@ -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
|
||||
|
@ -268,6 +273,7 @@ Client::leave()
|
|||
|
||||
if (m_sendClipboardThread != NULL) {
|
||||
StreamChunker::interruptClipboard();
|
||||
m_sendClipboardThread = NULL;
|
||||
}
|
||||
|
||||
m_sendClipboardThread = new Thread(
|
||||
|
|
|
@ -1993,6 +1993,11 @@ Server::onMouseMoveSecondary(SInt32 dx, SInt32 dy)
|
|||
} while (false);
|
||||
|
||||
if (jump) {
|
||||
if (m_sendFileThread != NULL) {
|
||||
StreamChunker::interruptFile();
|
||||
m_sendFileThread = NULL;
|
||||
}
|
||||
|
||||
// switch screens
|
||||
switchScreen(newScreen, m_x, m_y, false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue