mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-18 17:07:45 +02:00
Feature to drag a file from Mac (client) to Windows (server):
- temporarily drop dragging file to desktop (specified by command line arg --filetransfer-des) - on Mac side, fake an esc key while dragging off the screen does not seem to work
This commit is contained in:
parent
af04f8b2ef
commit
43e2535335
18 changed files with 155 additions and 13 deletions
|
@ -76,6 +76,9 @@ CClientProxy1_5::parseMessage(const UInt8* code)
|
|||
if (memcmp(code, kMsgDFileTransfer, 4) == 0) {
|
||||
fileChunkReceived();
|
||||
}
|
||||
else if (memcmp(code, kMsgDDragInfo, 4) == 0) {
|
||||
dragInfoReceived();
|
||||
}
|
||||
else {
|
||||
return CClientProxy1_4::parseMessage(code);
|
||||
}
|
||||
|
@ -133,3 +136,14 @@ CClientProxy1_5::fileChunkReceived()
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CClientProxy1_5::dragInfoReceived()
|
||||
{
|
||||
// parse
|
||||
UInt32 fileNum = 0;
|
||||
CString content;
|
||||
CProtocolUtil::readf(getStream(), kMsgDDragInfo + 4, &fileNum, &content);
|
||||
|
||||
m_server->dragInfoReceived(fileNum, content);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue