Feature to drag a file from Mac (client) to Windows (server):

- temporarily drop dragging file to desktop (specified by command line arg --filetransfer-des)
- on Mac side, fake an esc key while dragging off the screen does not seem to work
This commit is contained in:
jerry 2013-08-30 19:49:38 +00:00
parent af04f8b2ef
commit 43e2535335
18 changed files with 155 additions and 13 deletions

View file

@ -47,6 +47,10 @@
#include "COSXScreen.h"
#endif
#if defined(__APPLE__)
#include "COSXDragSimulator.h"
#endif
#include <iostream>
#include <stdio.h>
#include <fstream>
@ -782,7 +786,17 @@ CServerApp::mainLoop()
// later. the timer installed by startServer() will take care of
// that.
DAEMON_RUNNING(true);
#if defined(__APPLE__)
CThread thread(
new TMethodJob<CServerApp>(
this, &CServerApp::runEventsLoop,
NULL));
runCocoaApp();
#else
m_events->loop();
#endif
DAEMON_RUNNING(false);
// close down
@ -901,3 +915,10 @@ CServerApp::startNode()
m_bye(kExitFailed);
}
}
void
CServerApp::runEventsLoop(void*)
{
m_events->cacheCurrentEventQueueRef();
m_events->loop();
}