This repository has been archived by the owner. It is now read-only.
Permalink
...
Comparing changes
Open a pull request
8
contributors
Unified
Split
Showing
with
1,673 additions
and 1,612 deletions.
- +1 −2 .github/ISSUE_TEMPLATE.md
- +3 −0 .gitignore
- +2 −2 CMakeLists.txt
- +17 −11 ChangeLog
- +32 −10 ext/toolchain/commands1.py
- +0 −15 res/dpiaware.manifest
- BIN res/synergy.ico
- +0 −9 src/cmd/synergyc/CMakeLists.txt
- +3 −12 src/cmd/synergyd/CMakeLists.txt
- +0 −9 src/cmd/synergys/CMakeLists.txt
- +9 −6 src/gui/gui.pro
- +43 −44 src/gui/res/AboutDialogBase.ui
- +66 −76 src/gui/res/ActivationDialog.ui
- +1 −1 src/gui/res/CancelActivationDialog.ui
- +52 −1 src/gui/res/MainWindowBase.ui
- +1 −1 src/gui/res/ServerConfigDialogBase.ui
- +3 −1 src/gui/res/SettingsDialogBase.ui
- BIN src/gui/res/icons/256x256/synergy.ico
- BIN src/gui/res/image/about.png
- +71 −113 src/gui/src/ActivationDialog.cpp
- +7 −8 src/gui/src/ActivationDialog.h
- +20 −1 src/gui/src/ActivationNotifier.cpp
- +7 −1 src/gui/src/ActivationNotifier.h
- +26 −27 src/gui/src/AppConfig.cpp
- +12 −10 src/gui/src/AppConfig.h
- +18 −21 src/gui/src/CoreInterface.cpp
- +4 −4 src/gui/src/CoreInterface.h
- +169 −0 src/gui/src/LicenseManager.cpp
- +53 −0 src/gui/src/LicenseManager.h
- +165 −61 src/gui/src/MainWindow.cpp
- +18 −7 src/gui/src/MainWindow.h
- +0 −16 src/gui/src/QUtility.cpp
- +0 −1 src/gui/src/QUtility.h
- +1 −1 src/gui/src/SettingsDialog.cpp
- +1 −1 src/gui/src/SetupWizard.cpp
- +0 −167 src/gui/src/SubscriptionManager.cpp
- +0 −47 src/gui/src/SubscriptionManager.h
- +8 −5 src/gui/src/main.cpp
- +1 −1 src/lib/CMakeLists.txt
- +0 −1 src/lib/arch/unix/ArchInternetUnix.cpp
- +1 −1 src/lib/arch/unix/ArchSystemUnix.cpp
- +1 −8 src/lib/net/IListenSocket.h
- +0 −11 src/lib/net/SecureListenSocket.cpp
- +0 −1 src/lib/net/SecureListenSocket.h
- +0 −1 src/lib/net/TCPListenSocket.h
- +1 −1 src/lib/platform/CMakeLists.txt
- +16 −64 src/lib/platform/MSWindowsScreen.cpp
- +0 −7 src/lib/platform/MSWindowsScreen.h
- +1 −1 src/lib/platform/OSXClipboard.cpp
- +103 −65 src/lib/platform/OSXKeyState.cpp
- +6 −0 src/lib/platform/OSXKeyState.h
- +3 −1 src/lib/platform/OSXScreen.h
- +14 −8 src/lib/platform/{OSXScreen.cpp → OSXScreen.mm}
- +16 −10 src/lib/platform/XWindowsScreen.cpp
- +11 −0 src/lib/platform/XWindowsScreen.h
- +2 −0 src/lib/server/CMakeLists.txt
- +0 −10 src/lib/server/ClientListener.cpp
- +0 −2 src/lib/server/ClientListener.h
- +32 −37 src/lib/server/Server.cpp
- +3 −2 src/lib/server/Server.h
- +32 −0 src/lib/shared/CMakeLists.txt
- +5 −5 src/{gui/src → lib/shared}/EditionType.h
- +264 −0 src/lib/shared/SerialKey.cpp
- +84 −0 src/lib/shared/SerialKey.h
- +37 −47 src/lib/synergy/ArgParser.cpp
- +1 −1 src/lib/synergy/ClipboardChunk.cpp
- +0 −53 src/lib/synergy/DpiHelper.cpp
- +0 −38 src/lib/synergy/DpiHelper.h
- +1 −1 src/lib/synergy/ServerApp.cpp
- +1 −0 src/lib/synergy/ServerArgs.cpp
- +4 −2 src/lib/synergy/ServerArgs.h
- +0 −30 src/lib/synergy/SubscriptionKey.h
- +0 −199 src/lib/synergy/SubscriptionManager.cpp
- +0 −55 src/lib/synergy/SubscriptionManager.h
- +24 −40 src/lib/synergy/ToolApp.cpp
- +1 −1 src/lib/synergy/ToolApp.h
- +1 −5 src/lib/synergy/ToolArgs.cpp
- +1 −5 src/lib/synergy/ToolArgs.h
- +15 −0 src/setup/win32/Product.wxs
- +28 −20 src/test/integtests/net/NetworkTests.cpp
- +1 −1 src/test/unittests/CMakeLists.txt
- +147 −0 src/test/unittests/shared/SerialKeyTests.cpp
- +0 −70 src/test/unittests/synergy/DpiHelperTests.cpp
- +2 −2 src/test/unittests/synergy/ServerArgsParsingTests.cpp
- +0 −114 src/test/unittests/synergy/SubscriptionTests.cpp
View
3
.github/ISSUE_TEMPLATE.md
| @@ -1,8 +1,7 @@ | ||
| ### Operating Systems ### | ||
| -Client: Applesoft Windy OS 10 | ||
| - | ||
| Server: microOS Tiara | ||
| +Client: Applesoft Windy OS 10 | ||
| **READ ME, DELETE ME**: On Windows, hold the Windows key and press 'r', type 'winver' and hit return to get your OS version. On Mac, hit the Apple menu (top left of the screen) and check 'About this Mac'. Linux users... you know what you're using ;) | ||
View
3
.gitignore
| @@ -1,7 +1,10 @@ | ||
| config.h | ||
| +.DS_Store | ||
| *.pyc | ||
| +*.o | ||
| *~ | ||
| \.*.swp | ||
| +*build-gui-Desktop_Qt* | ||
| /bin | ||
| /lib | ||
| /build | ||
View
4
CMakeLists.txt
| @@ -17,8 +17,8 @@ | ||
| # Version number for Synergy | ||
| set(VERSION_MAJOR 1) | ||
| set(VERSION_MINOR 8) | ||
| -set(VERSION_REV 4) | ||
| -set(VERSION_STAGE stable) | ||
| +set(VERSION_REV 6) | ||
| +set(VERSION_STAGE rc2) | ||
| set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}") | ||
| cmake_minimum_required(VERSION 2.6) | ||
View
28
ChangeLog
| @@ -1,16 +1,22 @@ | ||
| -v1.8.4-stable | ||
| +v1.8.5-stable | ||
| ============= | ||
| +Bug #5680 - Server crashes when disconnecting SSL clients | ||
| +Bug #5626 - Build fails using Xcode 8 and macOS SDK 10.12 | ||
| +Feature #5657 - Trial version support | ||
| +Feature #5707 - User upgrade statistics | ||
| -Bug #4041 UHD/4K DPI scaling broken on Windows servers | ||
| -Bug #4420 When XRandR adds a screen, it is inaccessible | ||
| -Bug #5603 Activation notification depends on existence of /etc/os-release | ||
| -Bug #5624 Update notification sometimes requests a downgrade | ||
| -Bug #5329 Current date is shown for build date in the about dialog | ||
| -Bug #5640 Synergy branding is inconsistent across platforms | ||
| -Enhancement #5617 Remove redundant plugin infrastructure | ||
| -Enhancement #5627 Move SSL certificate generation to main window | ||
| -Enhancement #5628 Move SSL implementation into core binary | ||
| -Enhancement #5629 Move activation from wizard into new dialog window | ||
| +v1.8.4-stable | ||
| +============= | ||
| +Bug #5183 - Slowly moving the cursor has no effect on high DPI clients | ||
| +Bug #4041 - UHD/4K DPI scaling broken on Windows servers | ||
| +Bug #4420 - When XRandR adds a screen, it is inaccessible | ||
| +Bug #5603 - Activation notification depends on existence of /etc/os-release | ||
| +Bug #5624 - Update notification sometimes requests a downgrade | ||
| +Bug #5329 - Current date is shown for build date in the about dialog | ||
| +Enhancement #5617 - Remove redundant plugin infrastructure | ||
| +Enhancement #5627 - Move SSL certificate generation to main window | ||
| +Enhancement #5628 - Move SSL implementation into core binary | ||
| +Enhancement #5629 - Move activation from wizard into new dialog window | ||
| v1.8.3-stable | ||
| ============= | ||
View
42
ext/toolchain/commands1.py
| @@ -41,7 +41,7 @@ class Toolchain: | ||
| cmd_opt_dict = { | ||
| 'about' : ['', []], | ||
| 'setup' : ['g:', ['generator=']], | ||
| - 'configure' : ['g:dr', ['generator=', 'debug', 'release', 'mac-sdk=', 'mac-identity=']], | ||
| + 'configure' : ['g:dr', ['generator=', 'debug', 'release', 'mac-sdk=', 'mac-deploy=', 'mac-identity=']], | ||
| 'build' : ['dr', ['debug', 'release']], | ||
| 'clean' : ['dr', ['debug', 'release']], | ||
| 'update' : ['', []], | ||
| @@ -244,6 +244,9 @@ class InternalCommands: | ||
| # by default, unknown | ||
| macSdk = None | ||
| + # by default, unknown | ||
| + macDeploy = None | ||
| + | ||
| # by default, unknown | ||
| macIdentity = None | ||
| @@ -365,7 +368,7 @@ def configure(self, target='', extraArgs=''): | ||
| # ensure latest setup and do not ask config for generator (only fall | ||
| # back to prompt if not specified as arg) | ||
| self.ensure_setup_latest() | ||
| - | ||
| + | ||
| if sys.platform == "darwin": | ||
| config = self.getConfig() | ||
| @@ -374,6 +377,11 @@ def configure(self, target='', extraArgs=''): | ||
| elif config.has_option("hm", "macSdk"): | ||
| self.macSdk = config.get('hm', 'macSdk') | ||
| + if self.macDeploy: | ||
| + config.set('hm', 'macDeploy', self.macDeploy) | ||
| + elif config.has_option("hm", "macDeploy"): | ||
| + self.macSdk = config.get('hm', 'macDeploy') | ||
| + | ||
| if self.macIdentity: | ||
| config.set('hm', 'macIdentity', self.macIdentity) | ||
| elif config.has_option("hm", "macIdentity"): | ||
| @@ -383,7 +391,10 @@ def configure(self, target='', extraArgs=''): | ||
| if not self.macSdk: | ||
| raise Exception("Arg missing: --mac-sdk <version>"); | ||
| - | ||
| + | ||
| + if not self.macDeploy: | ||
| + self.macDeploy = self.macSdk | ||
| + | ||
| if not self.macIdentity: | ||
| raise Exception("Arg missing: --mac-identity <name>"); | ||
| @@ -430,14 +441,16 @@ def configureCore(self, target="", extraArgs=""): | ||
| if generator.cmakeName.find('Unix Makefiles') != -1: | ||
| cmake_args += ' -DCMAKE_BUILD_TYPE=' + target.capitalize() | ||
| - elif sys.platform == "darwin": | ||
| + if sys.platform == "darwin": | ||
| macSdkMatch = re.match("(\d+)\.(\d+)", self.macSdk) | ||
| if not macSdkMatch: | ||
| raise Exception("unknown osx version: " + self.macSdk) | ||
| - sdkDir = self.getMacSdkDir() | ||
| - cmake_args += " -DCMAKE_OSX_SYSROOT=" + sdkDir | ||
| - cmake_args += " -DCMAKE_OSX_DEPLOYMENT_TARGET=" + self.macSdk | ||
| + if generator.cmakeName.find('Unix Makefiles') == -1: | ||
| + sdkDir = self.getMacSdkDir() | ||
| + cmake_args += " -DCMAKE_OSX_SYSROOT=" + sdkDir | ||
| + cmake_args += " -DCMAKE_OSX_DEPLOYMENT_TARGET=" + self.macDeploy | ||
| + | ||
| cmake_args += " -DOSX_TARGET_MAJOR=" + macSdkMatch.group(1) | ||
| cmake_args += " -DOSX_TARGET_MINOR=" + macSdkMatch.group(2) | ||
| @@ -496,8 +509,8 @@ def configureGui(self, target="", extraArgs=""): | ||
| sdkDir = self.getMacSdkDir() | ||
| shortForm = "macosx" + self.macSdk | ||
| version = str(major) + "." + str(minor) | ||
| - | ||
| - qmake_cmd_string += " QMAKE_MACOSX_DEPLOYMENT_TARGET=" + version | ||
| + | ||
| + qmake_cmd_string += " QMAKE_MACOSX_DEPLOYMENT_TARGET=" + self.macDeploy | ||
| (qMajor, qMinor, qRev) = self.getQmakeVersion() | ||
| if qMajor <= 4: | ||
| @@ -551,6 +564,7 @@ def getMacSdkDir(self): | ||
| if os.path.exists(sdkPath): | ||
| return sdkPath | ||
| + # return os.popen('xcodebuild -version -sdk macosx' + self.macSdk + ' Path').read().strip() | ||
| return "/Developer/SDKs/" + sdkDirName + ".sdk" | ||
| # http://tinyurl.com/cs2rxxb | ||
| @@ -653,6 +667,9 @@ def loadConfig(self): | ||
| if config.has_option("hm", "macSdk"): | ||
| self.macSdk = config.get("hm", "macSdk") | ||
| + | ||
| + if config.has_option("hm", "macDeploy"): | ||
| + self.macDeploy = config.get("hm", "macDeploy") | ||
| if config.has_option("hm", "macIdentity"): | ||
| self.macIdentity = config.get("hm", "macIdentity") | ||
| @@ -1840,7 +1857,10 @@ def getMacPackageName(self): | ||
| # version is major and minor with no dots (e.g. 106) | ||
| version = str(major) + str(minor) | ||
| - return "MacOSX%s-%s" % (version, arch) | ||
| + if (self.macDeploy == self.macSdk): | ||
| + return "MacOSX%s-%s" % (version, arch) | ||
| + else: | ||
| + return "MacOSX-%s" % arch | ||
| def reset(self): | ||
| if os.path.exists('build'): | ||
| @@ -1895,6 +1915,8 @@ def __init__(self, argv, opts, args, verbose): | ||
| self.qtDir = a | ||
| elif o == '--mac-sdk': | ||
| self.ic.macSdk = a | ||
| + elif o == '--mac-deploy': | ||
| + self.ic.macDeploy = a | ||
| elif o == '--mac-identity': | ||
| self.ic.macIdentity = a | ||
View
15
res/dpiaware.manifest
| @@ -1,15 +0,0 @@ | ||
| -<?xml version="1.0" encoding="UTF-8"?> | ||
| -<assembly xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" manifestVersion="1.0"> | ||
| - <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
| - <application> | ||
| - <!-- Windows 7 --> | ||
| - <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" /> | ||
| - </application> | ||
| - </compatibility> | ||
| - <asmv3:application> | ||
| - <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> | ||
| - <dpiAware>true</dpiAware> | ||
| - </asmv3:windowsSettings> | ||
| - </asmv3:application> | ||
| -</assembly> | ||
| - |
View
BIN
res/synergy.ico
Binary file not shown.
View
9
src/cmd/synergyc/CMakeLists.txt
| @@ -60,15 +60,6 @@ add_executable(synergyc ${sources}) | ||
| target_link_libraries(synergyc | ||
| arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS}) | ||
| -if (WIN32) | ||
| - ADD_CUSTOM_COMMAND( | ||
| - TARGET synergyc | ||
| - POST_BUILD | ||
| - COMMAND "mt.exe" -manifest \"${CMAKE_SOURCE_DIR}\\res\\dpiaware.manifest\" -inputresource:\"$<TARGET_FILE:synergyc>\"\;\#1 -outputresource:\"$<TARGET_FILE:synergyc>\"\;\#1 | ||
| - COMMENT "Adding display aware manifest..." | ||
| - ) | ||
| -endif() | ||
| - | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
| synergyc | ||
View
15
src/cmd/synergyd/CMakeLists.txt
| @@ -1,11 +1,11 @@ | ||
| # synergy -- mouse and keyboard sharing utility | ||
| # Copyright (C) 2012-2016 Symless Ltd. | ||
| # Copyright (C) 2012 Nick Bolton | ||
| -# | ||
| +# | ||
| # This package is free software; you can redistribute it and/or | ||
| # modify it under the terms of the GNU General Public License | ||
| # found in the file LICENSE that should have accompanied this file. | ||
| -# | ||
| +# | ||
| # This package is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| @@ -35,16 +35,7 @@ else() | ||
| endif() | ||
| target_link_libraries(synergyd | ||
| - arch base common io ipc mt net platform synergy ${libs} ${OPENSSL_LIBS}) | ||
| - | ||
| -if (WIN32) | ||
| - ADD_CUSTOM_COMMAND( | ||
| - TARGET synergyd | ||
| - POST_BUILD | ||
| - COMMAND "mt.exe" -manifest \"${CMAKE_SOURCE_DIR}\\res\\dpiaware.manifest\" -inputresource:\"$<TARGET_FILE:synergyd>\"\;\#1 -outputresource:\"$<TARGET_FILE:synergyd>\"\;\#1 | ||
| - COMMENT "Adding display aware manifest..." | ||
| - ) | ||
| -endif() | ||
| + arch base common io ipc mt net platform synergy shared ${libs} ${OPENSSL_LIBS}) | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
View
9
src/cmd/synergys/CMakeLists.txt
| @@ -60,15 +60,6 @@ add_executable(synergys ${sources}) | ||
| target_link_libraries(synergys | ||
| arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS}) | ||
| -if (WIN32) | ||
| - ADD_CUSTOM_COMMAND( | ||
| - TARGET synergys | ||
| - POST_BUILD | ||
| - COMMAND "mt.exe" -manifest \"${CMAKE_SOURCE_DIR}\\res\\dpiaware.manifest\" -inputresource:\"$<TARGET_FILE:synergys>\"\;\#1 -outputresource:\"$<TARGET_FILE:synergys>\"\;\#1 | ||
| - COMMENT "Adding display aware manifest..." | ||
| - ) | ||
| -endif() | ||
| - | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
| synergys | ||
View
15
src/gui/gui.pro
| @@ -7,7 +7,8 @@ DEFINES += VERSION_REVISION=\\\"$$QMAKE_VERSION_REVISION\\\" | ||
| DEPENDPATH += . \ | ||
| res | ||
| INCLUDEPATH += . \ | ||
| - src | ||
| + src \ | ||
| + ../lib/shared/ | ||
| FORMS += res/MainWindowBase.ui \ | ||
| res/AboutDialogBase.ui \ | ||
| res/ServerConfigDialogBase.ui \ | ||
| @@ -60,11 +61,12 @@ SOURCES += src/main.cpp \ | ||
| src/Fingerprint.cpp \ | ||
| src/SslCertificate.cpp \ | ||
| src/WebClient.cpp \ | ||
| - src/SubscriptionManager.cpp \ | ||
| src/ActivationNotifier.cpp \ | ||
| src/ActivationDialog.cpp \ | ||
| src/CancelActivationDialog.cpp \ | ||
| - src/FailedLoginDialog.cpp | ||
| + src/FailedLoginDialog.cpp \ | ||
| + ../lib/shared/SerialKey.cpp \ | ||
| + src/LicenseManager.cpp | ||
| HEADERS += src/MainWindow.h \ | ||
| src/AboutDialog.h \ | ||
| src/ServerConfig.h \ | ||
| @@ -101,18 +103,19 @@ HEADERS += src/MainWindow.h \ | ||
| src/DataDownloader.h \ | ||
| src/AddClientDialog.h \ | ||
| src/CommandProcess.h \ | ||
| - src/EditionType.h \ | ||
| src/ProcessorArch.h \ | ||
| src/CoreInterface.h \ | ||
| src/Fingerprint.h \ | ||
| src/SslCertificate.h \ | ||
| src/WebClient.h \ | ||
| - src/SubscriptionManager.h \ | ||
| src/ActivationNotifier.h \ | ||
| src/ElevateMode.h \ | ||
| src/ActivationDialog.h \ | ||
| src/CancelActivationDialog.h \ | ||
| - src/FailedLoginDialog.h | ||
| + src/FailedLoginDialog.h \ | ||
| + ../lib/shared/EditionType.h \ | ||
| + ../lib/shared/SerialKey.h \ | ||
| + src/LicenseManager.h | ||
| RESOURCES += res/Synergy.qrc | ||
| RC_FILE = res/win/Synergy.rc | ||
| macx { | ||
Oops, something went wrong.