mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-16 08:06:00 +02:00
disabled drag and drop feature if there is no --enable-drag-drop cmd arg
This commit is contained in:
parent
e24afa5670
commit
fd0f5e1db2
8 changed files with 36 additions and 7 deletions
|
@ -317,6 +317,7 @@ COSXScreen::isAnyMouseButtonDown(UInt32& buttonID) const
|
|||
{
|
||||
if (m_buttonState.test(0)) {
|
||||
buttonID = kButtonLeft;
|
||||
return true;
|
||||
}
|
||||
|
||||
return (GetCurrentButtonState() != 0);
|
||||
|
@ -900,7 +901,7 @@ COSXScreen::leave()
|
|||
{
|
||||
hideCursor();
|
||||
|
||||
if (m_draggingStarted) {
|
||||
if (getDraggingStarted()) {
|
||||
CFStringRef dragInfo = getDraggedFileURL();
|
||||
char* dragInfoCStr = CFStringRefToUTF8String(dragInfo);
|
||||
LOG((CLOG_DEBUG "drag info: %s", dragInfoCStr));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue