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 CScreen::isLockedToScreen() const
{ {
// check for pressed mouse buttons // check for pressed mouse buttons
UInt32 buttonID = 0; // HACK: commented out as it breaks new drag drop feature
if (m_screen->isAnyMouseButtonDown(buttonID)) { // UInt32 buttonID = 0;
LOG((CLOG_DEBUG "locked by mouse buttonID: %d", buttonID)); // if (m_screen->isAnyMouseButtonDown(buttonID)) {
if (buttonID == kButtonLeft) { // LOG((CLOG_DEBUG "locked by mouse buttonID: %d", buttonID));
// TODO: fake esc key down and up // if (buttonID == kButtonLeft) {
//m_screen->fakeMouseButton(buttonID, false); // // TODO: fake esc key down and up
} // //m_screen->fakeMouseButton(buttonID, false);
// }
return (buttonID == kButtonLeft) ? false : true; //
} // return (buttonID == kButtonLeft) ? false : true;
// }
// not locked // not locked
return false; return false;