mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-13 07:06:10 +08:00
moved fake esc and lmb between getDropFileURL and draggingInfoSending, otherwise it would make getDropFileURl return null or fail to fake lmb up on carbon hardware layer, then can not move mouse back from client
This commit is contained in:
@@ -920,19 +920,13 @@ COSXScreen::leave()
|
||||
CString fileList(dragInfoCStr);
|
||||
size_t size = fileList.size();
|
||||
|
||||
// fake esc key down and up
|
||||
fakeKeyDown(kKeyEscape, 8192, 1);
|
||||
fakeKeyUp(1);
|
||||
|
||||
fakeMouseButton(kButtonLeft, false);
|
||||
|
||||
if (m_isPrimary) {
|
||||
CServerApp& app = CServerApp::instance();
|
||||
CServer* server = app.getServerPtr();
|
||||
LOG((CLOG_DEBUG "send dragging file to client"));
|
||||
server->sendFileToClient(dragInfoCStr);
|
||||
}
|
||||
else {
|
||||
if (!m_isPrimary) {
|
||||
// fake esc key down and up
|
||||
fakeKeyDown(kKeyEscape, 8192, 1);
|
||||
fakeKeyUp(1);
|
||||
|
||||
fakeMouseButton(kButtonLeft, false);
|
||||
|
||||
// fake ctrl key up
|
||||
fakeKeyUp(29);
|
||||
CClientApp& app = CClientApp::instance();
|
||||
|
||||
Reference in New Issue
Block a user