mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-09 06:11:41 +02:00
- 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:
parent
012fe6ddd8
commit
031a84ca84
17 changed files with 95 additions and 23 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue