mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 11:32:43 +03:00
hacked isLockedToScreen so that mouse move back from windows client to mac server after dropping a file
This commit is contained in:
parent
4e09b06cb0
commit
f6ecf9322c
@ -371,16 +371,17 @@ bool
|
||||
CScreen::isLockedToScreen() const
|
||||
{
|
||||
// check for pressed mouse buttons
|
||||
UInt32 buttonID = 0;
|
||||
if (m_screen->isAnyMouseButtonDown(buttonID)) {
|
||||
LOG((CLOG_DEBUG "locked by mouse buttonID: %d", buttonID));
|
||||
if (buttonID == kButtonLeft) {
|
||||
// TODO: fake esc key down and up
|
||||
//m_screen->fakeMouseButton(buttonID, false);
|
||||
}
|
||||
|
||||
return (buttonID == kButtonLeft) ? false : true;
|
||||
}
|
||||
// HACK: commented out as it breaks new drag drop feature
|
||||
// UInt32 buttonID = 0;
|
||||
// if (m_screen->isAnyMouseButtonDown(buttonID)) {
|
||||
// LOG((CLOG_DEBUG "locked by mouse buttonID: %d", buttonID));
|
||||
// if (buttonID == kButtonLeft) {
|
||||
// // TODO: fake esc key down and up
|
||||
// //m_screen->fakeMouseButton(buttonID, false);
|
||||
// }
|
||||
//
|
||||
// return (buttonID == kButtonLeft) ? false : true;
|
||||
// }
|
||||
|
||||
// not locked
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user