From 6df96d4a56826f81053a1d07262c08ecbd6500f1 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 3 Apr 2025 23:50:31 -0400 Subject: [PATCH] refactor: Don't show drag and drop as an option on linux --- src/lib/deskflow/App.h | 3 ++- src/lib/deskflow/ClientApp.cpp | 3 +++ src/lib/deskflow/ServerApp.cpp | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/deskflow/App.h b/src/lib/deskflow/App.h index bb428ffb6..6d36791be 100644 --- a/src/lib/deskflow/App.h +++ b/src/lib/deskflow/App.h @@ -173,10 +173,11 @@ private: " -1, --no-restart do not try to restart on failure.\n" \ "* --restart restart the server automatically if it fails.\n" \ " -l --log write log messages to file.\n" \ - " --enable-drag-drop enable file drag & drop.\n" \ " --enable-crypto enable TLS encryption.\n" \ " --tls-cert specify the path to the TLS certificate file.\n" +#define DRAG_AND_DROP " --enable-drag-drop enable file drag & drop.\n" + #define HELP_COMMON_INFO_2 \ " -h, --help display this help and exit.\n" \ " --version display version information and exit.\n" diff --git a/src/lib/deskflow/ClientApp.cpp b/src/lib/deskflow/ClientApp.cpp index 1296ef5fb..5bea93c12 100644 --- a/src/lib/deskflow/ClientApp.cpp +++ b/src/lib/deskflow/ClientApp.cpp @@ -125,6 +125,9 @@ void ClientApp::help() << " -a, --address
local network interface address.\n" << HELP_COMMON_INFO_1 << HELP_SYS_INFO << " --yscroll defines the vertical scrolling delta,\n" << " which is 120 by default.\n" +#ifndef WINAPI_XWINDOWS + << DRAG_AND_DROP "\n" +#endif << " --sync-language enable language synchronization.\n" << " --invert-scroll invert scroll direction on this\n" << " computer.\n" diff --git a/src/lib/deskflow/ServerApp.cpp b/src/lib/deskflow/ServerApp.cpp index b845e004b..473cc6804 100644 --- a/src/lib/deskflow/ServerApp.cpp +++ b/src/lib/deskflow/ServerApp.cpp @@ -132,7 +132,11 @@ void ServerApp::help() << " [--no-wayland-ei]" #endif - << HELP_SYS_ARGS HELP_COMMON_ARGS "\n\n" + << HELP_SYS_ARGS HELP_COMMON_ARGS "\n" +#ifndef WINAPI_XWINDOWS + << DRAG_AND_DROP "\n" +#endif + << "\n" << "Start the " << kAppName << " mouse/keyboard sharing server.\n" << "\n" << " -a, --address
listen for clients on the given address.\n"