hacked isLockedToScreen so that mouse move back from windows client to mac server after dropping a file

This commit is contained in:
jerry 2013-09-18 14:32:38 +00:00
parent 4e09b06cb0
commit f6ecf9322c
1 changed files with 11 additions and 10 deletions

View File

@ -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;