mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-22 10:57:37 +02:00
Interrupted file transfer when cursor move back #4584
This commit is contained in:
parent
e0903983ad
commit
646e1b52eb
2 changed files with 14 additions and 3 deletions
|
@ -1797,7 +1797,7 @@ Server::onMouseMovePrimary(SInt32 x, SInt32 y)
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// switch screen
|
||||
switchScreen(newScreen, x, y, false);
|
||||
m_waitDragInfoThread = true;
|
||||
|
@ -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…
Add table
Add a link
Reference in a new issue