From f6ecf9322c0923874c39cbcd0274617e474dd433 Mon Sep 17 00:00:00 2001 From: jerry Date: Wed, 18 Sep 2013 14:32:38 +0000 Subject: [PATCH] hacked isLockedToScreen so that mouse move back from windows client to mac server after dropping a file --- src/lib/synergy/CScreen.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/lib/synergy/CScreen.cpp b/src/lib/synergy/CScreen.cpp index 1c428c54..995c9df1 100644 --- a/src/lib/synergy/CScreen.cpp +++ b/src/lib/synergy/CScreen.cpp @@ -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;