mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-17 16:37:43 +02:00
- removed --filetransfer-src and --filetransfer-des args.
- on Window, temporarily use user desktop directory as drop target.
This commit is contained in:
parent
760e38eeba
commit
340e31298e
9 changed files with 34 additions and 27 deletions
|
@ -38,6 +38,7 @@
|
|||
#include "CArchMiscWindows.h"
|
||||
#include <string.h>
|
||||
#include <pbt.h>
|
||||
#include <Shlobj.h>
|
||||
|
||||
//
|
||||
// add backwards compatible multihead support (and suppress bogus warning).
|
||||
|
@ -140,6 +141,11 @@ CMSWindowsScreen::CMSWindowsScreen(
|
|||
forceShowCursor();
|
||||
LOG((CLOG_DEBUG "screen shape: %d,%d %dx%d %s", m_x, m_y, m_w, m_h, m_multimon ? "(multi-monitor)" : ""));
|
||||
LOG((CLOG_DEBUG "window is 0x%08x", m_window));
|
||||
|
||||
char desktopPath[MAX_PATH];
|
||||
SHGetFolderPath(NULL, CSIDL_DESKTOP, NULL, 0, desktopPath);
|
||||
m_desktopPath = CString(desktopPath);
|
||||
LOG((CLOG_DEBUG "temporarily use desktop directory for drop target: %s", m_desktopPath.c_str()));
|
||||
}
|
||||
catch (...) {
|
||||
delete m_keyState;
|
||||
|
@ -1849,3 +1855,9 @@ CMSWindowsScreen::getDraggingFileDir()
|
|||
|
||||
return m_draggingFileDir;
|
||||
}
|
||||
|
||||
const CString&
|
||||
CMSWindowsScreen::getDropTarget() const
|
||||
{
|
||||
return m_desktopPath;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue