This repository has been archived by the owner. It is now read-only.
Permalink
...
Comparing changes
Open a pull request
7
contributors
Unified
Split
Showing
with
2,454 additions
and 3,831 deletions.
- +1 −2 .github/ISSUE_TEMPLATE.md
- +3 −0 .gitignore
- +5 −2 CMakeLists.txt
- +20 −0 ChangeLog
- +7 −34 ext/toolchain/commands1.py
- BIN res/banner.bmp
- BIN res/dialog.bmp
- +15 −0 res/dpiaware.manifest
- +0 −3 res/synergy.spec.in
- +32 −0 src/CMakeLists.txt
- +10 −1 src/cmd/synergyc/CMakeLists.txt
- +4 −4 src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
- +12 −3 src/cmd/synergyd/CMakeLists.txt
- +1 −1 src/cmd/synergyp/CMakeLists.txt
- +6 −6 src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp
- +10 −1 src/cmd/synergys/CMakeLists.txt
- +6 −6 src/cmd/synergys/MSWindowsServerTaskBarReceiver.cpp
- +1 −1 src/cmd/syntool/CMakeLists.txt
- +18 −15 src/gui/gui.pro
- +163 −0 src/gui/res/ActivationDialog.ui
- +89 −0 src/gui/res/CancelActivationDialog.ui
- +108 −0 src/gui/res/FailedLoginDialog.ui
- +58 −7 src/gui/res/MainWindowBase.ui
- +0 −137 src/gui/res/PluginWizardPageBase.ui
- +1 −1 src/gui/res/ServerConfigDialogBase.ui
- +4 −1 src/gui/res/SettingsDialogBase.ui
- +0 −208 src/gui/res/SetupWizardBase.ui
- +3 −1 src/gui/src/AboutDialog.cpp
- +122 −0 src/gui/src/ActivationDialog.cpp
- +35 −0 src/gui/src/ActivationDialog.h
- +20 −1 src/gui/src/ActivationNotifier.cpp
- +7 −1 src/gui/src/ActivationNotifier.h
- +118 −8 src/gui/src/AppConfig.cpp
- +58 −44 src/gui/src/AppConfig.h
- +14 −0 src/gui/src/CancelActivationDialog.cpp
- +22 −0 src/gui/src/CancelActivationDialog.h
- +18 −21 src/gui/src/CoreInterface.cpp
- +4 −4 src/gui/src/CoreInterface.h
- +15 −0 src/gui/src/FailedLoginDialog.cpp
- +23 −0 src/gui/src/FailedLoginDialog.h
- +163 −0 src/gui/src/LicenseManager.cpp
- +52 −0 src/gui/src/LicenseManager.h
- +196 −52 src/gui/src/MainWindow.cpp
- +30 −8 src/gui/src/MainWindow.h
- +0 −73 src/gui/src/Plugin.cpp
- +0 −53 src/gui/src/Plugin.h
- +0 −186 src/gui/src/PluginManager.cpp
- +0 −75 src/gui/src/PluginManager.h
- +0 −206 src/gui/src/PluginWizardPage.cpp
- +0 −66 src/gui/src/PluginWizardPage.h
- +12 −8 src/gui/src/QUtility.cpp
- +14 −10 src/gui/src/SettingsDialog.cpp
- +2 −2 src/gui/src/SettingsDialog.h
- +3 −148 src/gui/src/SetupWizard.cpp
- +0 −8 src/gui/src/SetupWizard.h
- +39 −36 src/gui/src/SslCertificate.cpp
- +0 −167 src/gui/src/SubscriptionManager.cpp
- +0 −47 src/gui/src/SubscriptionManager.h
- +4 −2 src/gui/src/VersionChecker.cpp
- +38 −54 src/gui/src/WebClient.cpp
- +5 −11 src/gui/src/WebClient.h
- +8 −5 src/gui/src/main.cpp
- +1 −2 src/lib/CMakeLists.txt
- +0 −4 src/lib/arch/Arch.h
- +0 −80 src/lib/arch/IArchPlugin.h
- +0 −1 src/lib/arch/unix/ArchInternetUnix.cpp
- +1 −1 src/lib/arch/unix/ArchMultithreadPosix.cpp
- +3 −4 src/lib/arch/unix/ArchNetworkBSD.cpp
- +0 −239 src/lib/arch/unix/ArchPluginUnix.cpp
- +0 −53 src/lib/arch/unix/ArchPluginUnix.h
- +1 −1 src/lib/arch/win32/ArchMultithreadWindows.cpp
- +1 −1 src/lib/arch/win32/ArchNetworkWinsock.cpp
- +0 −250 src/lib/arch/win32/ArchPluginWindows.cpp
- +0 −57 src/lib/arch/win32/ArchPluginWindows.h
- +12 −12 src/lib/arch/win32/ArchTaskBarWindows.cpp
- +1 −1 src/lib/arch/win32/ArchTimeWindows.cpp
- +1 −1 src/lib/base/EventQueue.cpp
- +8 −24 src/lib/client/Client.cpp
- +0 −36 src/lib/common/PluginVersion.cpp
- +0 −31 src/lib/common/PluginVersion.h
- +2 −2 src/lib/io/StreamBuffer.cpp
- +1 −1 src/lib/io/StreamFilter.cpp
- +1 −1 src/lib/mt/Thread.cpp
- +19 −1 src/lib/net/CMakeLists.txt
- +1 −8 src/lib/net/IListenSocket.h
- +0 −11 src/lib/{plugin/ns → net}/SecureListenSocket.cpp
- +0 −1 src/lib/{plugin/ns → net}/SecureListenSocket.h
- 0 src/lib/{plugin/ns → net}/SecureSocket.cpp
- 0 src/lib/{plugin/ns → net}/SecureSocket.h
- +1 −0 src/lib/net/SocketMultiplexer.cpp
- +1 −1 src/lib/net/TCPListenSocket.cpp
- +0 −1 src/lib/net/TCPListenSocket.h
- +1 −1 src/lib/net/TCPSocket.cpp
- +7 −18 src/lib/net/TCPSocketFactory.cpp
- +1 −1 src/lib/platform/CMakeLists.txt
- +3 −3 src/lib/platform/MSWindowsClipboardBitmapConverter.cpp
- +1 −1 src/lib/platform/MSWindowsDesks.cpp
- +27 −7 src/lib/platform/MSWindowsScreen.cpp
- +8 −1 src/lib/platform/MSWindowsScreen.h
- +1 −1 src/lib/platform/OSXClipboard.cpp
- +2 −0 src/lib/platform/OSXScreen.h
- +6 −5 src/lib/platform/{OSXScreen.cpp → OSXScreen.mm}
- +4 −4 src/lib/platform/OSXUchrKeyResource.cpp
- +38 −35 src/lib/platform/XWindowsClipboard.cpp
- +1 −1 src/lib/platform/XWindowsKeyState.cpp
- +3 −1 src/lib/platform/XWindowsScreen.cpp
- +2 −2 src/lib/platform/XWindowsUtil.cpp
- +0 −28 src/lib/plugin/CMakeLists.txt
- +0 −128 src/lib/plugin/ns/CMakeLists.txt
- +0 −127 src/lib/plugin/ns/ns.cpp
- +0 −41 src/lib/plugin/ns/ns.h
- +0 −106 src/lib/plugin/winmmjoy/winmmjoy.cpp
- +0 −72 src/lib/plugin/winmmjoy/winmmjoy.h
- +2 −0 src/lib/server/CMakeLists.txt
- +5 −33 src/lib/server/ClientListener.cpp
- +0 −2 src/lib/server/ClientListener.h
- +4 −4 src/lib/server/InputFilter.cpp
- +53 −49 src/lib/server/Server.cpp
- +3 −2 src/lib/server/Server.h
- +9 −9 src/lib/{plugin/winmmjoy → shared}/CMakeLists.txt
- +7 −5 src/{gui/src → lib/shared}/EditionType.h
- +264 −0 src/lib/shared/SerialKey.cpp
- +84 −0 src/lib/shared/SerialKey.h
- +18 −35 src/lib/synergy/ArgParser.cpp
- +2 −13 src/lib/synergy/ClientApp.cpp
- +7 −9 src/lib/synergy/ClipboardChunk.cpp
- +1 −1 src/lib/synergy/KeyState.cpp
- +14 −14 src/lib/synergy/ProtocolUtil.cpp
- +2 −13 src/lib/synergy/ServerApp.cpp
- +1 −0 src/lib/synergy/ServerArgs.cpp
- +4 −2 src/lib/synergy/ServerArgs.h
- +1 −1 src/lib/synergy/StreamChunker.cpp
- +0 −30 src/lib/synergy/SubscriptionKey.h
- +0 −199 src/lib/synergy/SubscriptionManager.cpp
- +0 −55 src/lib/synergy/SubscriptionManager.h
- +21 −50 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
- +0 −8 src/setup/win32/Product.wxs
- +1 −1 src/test/integtests/CMakeLists.txt
- +39 −30 src/test/integtests/net/NetworkTests.cpp
- +1 −1 src/test/unittests/CMakeLists.txt
- +147 −0 src/test/unittests/shared/SerialKeyTests.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
7
CMakeLists.txt
| @@ -17,7 +17,7 @@ | ||
| # Version number for Synergy | ||
| set(VERSION_MAJOR 1) | ||
| set(VERSION_MINOR 8) | ||
| -set(VERSION_REV 3) | ||
| +set(VERSION_REV 5) | ||
| set(VERSION_STAGE stable) | ||
| set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}") | ||
| @@ -205,7 +205,10 @@ if (UNIX) | ||
| set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH}:/usr/local/include") | ||
| set(XKBlib "X11/Xlib.h;X11/XKBlib.h") | ||
| - check_symbol_exists("XRRNotifyEvent" "${XKBlib};X11/extensions/Xrandr.h" HAVE_X11_EXTENSIONS_XRANDR_H) | ||
| + set(CMAKE_EXTRA_INCLUDE_FILES "${XKBlib};X11/extensions/Xrandr.h") | ||
| + check_type_size("XRRNotifyEvent" X11_EXTENSIONS_XRANDR_H) | ||
| + set(HAVE_X11_EXTENSIONS_XRANDR_H "${X11_EXTENSIONS_XRANDR_H}") | ||
| + set(CMAKE_EXTRA_INCLUDE_FILES) | ||
| check_include_files("${XKBlib};X11/extensions/dpms.h" HAVE_X11_EXTENSIONS_DPMS_H) | ||
| check_include_files("X11/extensions/Xinerama.h" HAVE_X11_EXTENSIONS_XINERAMA_H) | ||
View
20
ChangeLog
| @@ -1,3 +1,23 @@ | ||
| +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 | ||
| + | ||
| +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 | ||
| ============= | ||
| Bug #2765 - A letter appears on macOS clients when the spacebar is pressed | ||
View
41
ext/toolchain/commands1.py
| @@ -430,14 +430,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.macSdk | ||
| + | ||
| cmake_args += " -DOSX_TARGET_MAJOR=" + macSdkMatch.group(1) | ||
| cmake_args += " -DOSX_TARGET_MINOR=" + macSdkMatch.group(2) | ||
| @@ -551,6 +553,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 | ||
| @@ -741,16 +744,6 @@ def macPostGuiMake(self, target): | ||
| shutil.copy(targetDir + "/synergys", bundleBinDir) | ||
| shutil.copy(targetDir + "/syntool", bundleBinDir) | ||
| - # Copy all generated plugins to the package | ||
| - bundlePluginDir = bundleBinDir + "plugins" | ||
| - pluginDir = targetDir + "/plugins" | ||
| - print "Copying plugins dirtree: " + pluginDir | ||
| - if os.path.isdir(pluginDir): | ||
| - print "Copying to: " + bundlePluginDir | ||
| - shutil.copytree(pluginDir, bundlePluginDir) | ||
| - else: | ||
| - print "pluginDir doesn't exist, skipping" | ||
| - | ||
| self.loadConfig() | ||
| if not self.macIdentity: | ||
| raise Exception("run config with --mac-identity") | ||
| @@ -1151,14 +1144,12 @@ def distDeb(self): | ||
| controlFile.close() | ||
| targetBin = '%s/%s/usr/bin' % (debDir, package) | ||
| - targetPlugin = '%s/%s/usr/lib/synergy/plugins' % (debDir, package) | ||
| targetShare = '%s/%s/usr/share' % (debDir, package) | ||
| targetApplications = "%s/applications" % targetShare | ||
| targetIcons = "%s/icons" % targetShare | ||
| targetDocs = "%s/doc/%s" % (targetShare, self.project) | ||
| os.makedirs(targetBin) | ||
| - os.makedirs(targetPlugin) | ||
| os.makedirs(targetApplications) | ||
| os.makedirs(targetIcons) | ||
| os.makedirs(targetDocs) | ||
| @@ -1176,17 +1167,6 @@ def distDeb(self): | ||
| if err != 0: | ||
| raise Exception('strip failed: ' + str(err)) | ||
| - pluginDir = "%s/plugins" % binDir | ||
| - | ||
| - pluginFiles = [ 'libns.so'] | ||
| - for f in pluginFiles: | ||
| - shutil.copy("%s/%s" % (pluginDir, f), targetPlugin) | ||
| - target = "%s/%s" % (targetPlugin, f) | ||
| - os.chmod(target, 0o0644) | ||
| - err = os.system("strip " + target) | ||
| - if err != 0: | ||
| - raise Exception('strip failed: ' + str(err)) | ||
| - | ||
| shutil.copy("%s/synergy.desktop" % resDir, targetApplications) | ||
| shutil.copy("%s/synergy.ico" % resDir, targetIcons) | ||
| @@ -1402,13 +1382,6 @@ def distftp(self, type, ftp): | ||
| packageTarget = filename | ||
| ftp.upload(packageSource, packageTarget) | ||
| - if type != 'src': | ||
| - pluginsDir = binDir + '/plugins' | ||
| - nsPluginSource = self.findLibraryFile(type, pluginsDir, 'ns') | ||
| - if nsPluginSource: | ||
| - nsPluginTarget = self.getLibraryDistFilename(type, pluginsDir, 'ns') | ||
| - ftp.upload(nsPluginSource, nsPluginTarget, "plugins") | ||
| - | ||
| def getLibraryDistFilename(self, type, dir, name): | ||
| (platform, packageExt, libraryExt) = self.getDistributePlatformInfo(type) | ||
| firstPart = '%s-%s-%s' % (name, self.getVersionForFilename(), platform) | ||
View
BIN
res/banner.bmp
Binary file not shown.
View
BIN
res/dialog.bmp
Binary file not shown.
View
15
res/dpiaware.manifest
| @@ -0,0 +1,15 @@ | ||
| +<?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
3
res/synergy.spec.in
| @@ -20,7 +20,6 @@ source=%{_topdir}/../.. | ||
| mkdir -p %{buildroot}/%{_datarootdir}/applications | ||
| mkdir -p %{buildroot}/%{_datarootdir}/icons | ||
| mkdir -p %{buildroot}/%{_bindir} | ||
| -mkdir -p %{buildroot}/%{_bindir}/../lib/synergy/plugins | ||
| cp $source/bin/synergy %{buildroot}%{_bindir} | ||
| cp $source/bin/synergyc %{buildroot}%{_bindir} | ||
| @@ -29,7 +28,6 @@ cp $source/bin/synergyd %{buildroot}%{_bindir} | ||
| cp $source/bin/syntool %{buildroot}%{_bindir} | ||
| cp $source/res/synergy.desktop %{buildroot}%{_datarootdir}/applications | ||
| cp $source/res/synergy.ico %{buildroot}%{_datarootdir}/icons | ||
| -cp $source/bin/plugins/* %{buildroot}%{_bindir}/../lib/synergy/plugins | ||
| %files | ||
| %defattr(755,root,root,-) | ||
| @@ -40,7 +38,6 @@ cp $source/bin/plugins/* %{buildroot}%{_bindir}/../lib/synergy/plugins | ||
| %{_bindir}/syntool | ||
| %attr(644,-,-) %{_datarootdir}/applications/synergy.desktop | ||
| %attr(644,-,-) %{_datarootdir}/icons/synergy.ico | ||
| -%attr(644,-,-) %{_bindir}/../lib/synergy/plugins/* | ||
| %changelog | ||
| * Thu Mar 20 2014 Nick Bolton <nick@symless.com> | ||
View
32
src/CMakeLists.txt
| @@ -14,6 +14,38 @@ | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| +if (WIN32) | ||
| + if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
| + set(OPENSSL_PLAT_DIR openssl-win64) | ||
| + else() | ||
| + set(OPENSSL_PLAT_DIR openssl-win32) | ||
| + endif() | ||
| + set(OPENSSL_INCLUDE ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/inc32) | ||
| +endif() | ||
| + | ||
| +if (APPLE) | ||
| + set(OPENSSL_PLAT_DIR openssl-osx) | ||
| + set(OPENSSL_INCLUDE ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/include) | ||
| +endif() | ||
| + | ||
| +if (WIN32) | ||
| + set(OPENSSL_LIBS | ||
| + ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/out32dll/libeay32.lib | ||
| + ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/out32dll/ssleay32.lib | ||
| + ) | ||
| +endif() | ||
| + | ||
| +if (UNIX) | ||
| + if (APPLE) | ||
| + set(OPENSSL_LIBS | ||
| + ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libssl.a | ||
| + ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libcrypto.a | ||
| + ) | ||
| + else() | ||
| + set(OPENSSL_LIBS ssl crypto) | ||
| + endif() | ||
| +endif() | ||
| + | ||
| add_subdirectory(lib) | ||
| add_subdirectory(cmd) | ||
| add_subdirectory(micro) | ||
View
11
src/cmd/synergyc/CMakeLists.txt
| @@ -58,7 +58,16 @@ endif() | ||
| add_executable(synergyc ${sources}) | ||
| target_link_libraries(synergyc | ||
| - arch base client common io mt net ipc platform server synergy ${libs}) | ||
| + 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 | ||
View
8
src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
| @@ -221,7 +221,7 @@ MSWindowsClientTaskBarReceiver::primaryAction() | ||
| const IArchTaskBarReceiver::Icon | ||
| MSWindowsClientTaskBarReceiver::getIcon() const | ||
| { | ||
| - return reinterpret_cast<Icon>(m_icon[getStatus()]); | ||
| + return static_cast<Icon>(m_icon[getStatus()]); | ||
| } | ||
| void | ||
| @@ -263,7 +263,7 @@ MSWindowsClientTaskBarReceiver::loadIcon(UINT id) | ||
| IMAGE_ICON, | ||
| 0, 0, | ||
| LR_DEFAULTCOLOR); | ||
| - return reinterpret_cast<HICON>(icon); | ||
| + return static_cast<HICON>(icon); | ||
| } | ||
| void | ||
| @@ -288,7 +288,7 @@ MSWindowsClientTaskBarReceiver::createWindow() | ||
| NULL, | ||
| (DLGPROC)&MSWindowsClientTaskBarReceiver::staticDlgProc, | ||
| reinterpret_cast<LPARAM>( | ||
| - reinterpret_cast<void*>(this))); | ||
| + static_cast<void*>(this))); | ||
| // window should appear on top of everything, including (especially) | ||
| // the task bar. | ||
| @@ -337,7 +337,7 @@ MSWindowsClientTaskBarReceiver::staticDlgProc(HWND hwnd, | ||
| // and put it in the extra window data then forward the call. | ||
| MSWindowsClientTaskBarReceiver* self = NULL; | ||
| if (msg == WM_INITDIALOG) { | ||
| - self = reinterpret_cast<MSWindowsClientTaskBarReceiver*>( | ||
| + self = static_cast<MSWindowsClientTaskBarReceiver*>( | ||
| reinterpret_cast<void*>(lParam)); | ||
| SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR) lParam); | ||
| } | ||
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,7 +35,16 @@ else() | ||
| endif() | ||
| target_link_libraries(synergyd | ||
| - arch base common io ipc mt net platform synergy ${libs}) | ||
| + arch base common io ipc mt net platform synergy shared ${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() | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
View
2
src/cmd/synergyp/CMakeLists.txt
| @@ -63,7 +63,7 @@ else() | ||
| endif() | ||
| target_link_libraries(synergyp | ||
| - arch base client common io mt net ipc platform server synergy client ${libs}) | ||
| + arch base client common io mt net ipc platform server synergy client ${libs} ${OPENSSL_LIBS}) | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
View
12
src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp
| @@ -238,7 +238,7 @@ MSWindowsPortableTaskBarReceiver::primaryAction() | ||
| const IArchTaskBarReceiver::Icon | ||
| MSWindowsPortableTaskBarReceiver::getIcon() const | ||
| { | ||
| - return reinterpret_cast<Icon>(m_icon[getStatus()]); | ||
| + return static_cast<Icon>(m_icon[getStatus()]); | ||
| } | ||
| void | ||
| @@ -280,7 +280,7 @@ MSWindowsPortableTaskBarReceiver::loadIcon(UINT id) | ||
| IMAGE_ICON, | ||
| 0, 0, | ||
| LR_DEFAULTCOLOR); | ||
| - return reinterpret_cast<HICON>(icon); | ||
| + return static_cast<HICON>(icon); | ||
| } | ||
| void | ||
| @@ -305,7 +305,7 @@ MSWindowsPortableTaskBarReceiver::createWindow() | ||
| NULL, | ||
| (DLGPROC)&MSWindowsPortableTaskBarReceiver::staticDlgProc, | ||
| reinterpret_cast<LPARAM>( | ||
| - reinterpret_cast<void*>(this))); | ||
| + static_cast<void*>(this))); | ||
| // window should appear on top of everything, including (especially) | ||
| // the task bar. | ||
| @@ -354,15 +354,15 @@ MSWindowsPortableTaskBarReceiver::staticDlgProc(HWND hwnd, | ||
| // and put it in the extra window data then forward the call. | ||
| MSWindowsPortableTaskBarReceiver* self = NULL; | ||
| if (msg == WM_INITDIALOG) { | ||
| - self = reinterpret_cast<MSWindowsPortableTaskBarReceiver*>( | ||
| + self = static_cast<MSWindowsPortableTaskBarReceiver*>( | ||
| reinterpret_cast<void*>(lParam)); | ||
| SetWindowLongPtr(hwnd, GWLP_USERDATA, lParam); | ||
| } | ||
| else { | ||
| // get the extra window data and forward the call | ||
| - LONG data = (LONG)GetWindowLongPtr(hwnd, GWLP_USERDATA); | ||
| + LONG_PTR data = GetWindowLongPtr(hwnd, GWLP_USERDATA); | ||
| if (data != 0) { | ||
| - self = reinterpret_cast<MSWindowsPortableTaskBarReceiver*>( | ||
| + self = static_cast<MSWindowsPortableTaskBarReceiver*>( | ||
| reinterpret_cast<void*>(data)); | ||
| } | ||
| } | ||
View
11
src/cmd/synergys/CMakeLists.txt
| @@ -58,7 +58,16 @@ endif() | ||
| add_executable(synergys ${sources}) | ||
| target_link_libraries(synergys | ||
| - arch base client common io mt net ipc platform server synergy ${libs}) | ||
| + 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 | ||
Oops, something went wrong.