- Allow dragging one file from Windows (server) to Mac (client), --filetransfer-des needs to be specified in client side's command line.

This commit is contained in:
jerry 2013-08-23 15:36:23 +00:00
parent 012fe6ddd8
commit 031a84ca84
17 changed files with 95 additions and 23 deletions

View file

@ -371,9 +371,15 @@ bool
CScreen::isLockedToScreen() const
{
// check for pressed mouse buttons
if (m_screen->isAnyMouseButtonDown()) {
LOG((CLOG_DEBUG "locked by mouse button"));
return true;
UInt32 buttonID = 0;
if (m_screen->isAnyMouseButtonDown(buttonID)) {
LOG((CLOG_DEBUG "locked by mouse buttonID: %d", buttonID));
if (buttonID == kButtonLeft) {
// this should fake an esc pressed
m_screen->fakeMouseButton(buttonID, false);
}
return (buttonID == kButtonLeft) ? false : true;
}
// not locked
@ -409,6 +415,12 @@ CScreen::pollActiveModifiers() const
return m_screen->pollActiveModifiers();
}
CString&
CScreen::getDraggingFileDir() const
{
return m_screen->getDraggingFileDir();
}
void*
CScreen::getEventTarget() const
{