7dd2db25ec
This patch brings full 64-bit compatibility to Synergy on OS X by replacing all obsolete 32-bit only Carbon functions with modern equivalents. All functions introduced have been available since 10.4 so this won't affect the minimum deployment target. Specifically: Creating an empty CGEvent and getting its location is behaviourally identical to GetGlobalMouse, and yes, both are in flipped coordinates. This was tested with a multi-monitor configuration as well. TrackMouseLocationWithOptions is behaviourally identical to GetGlobalMouse in these cases because the timeout was 0 and none of the other out params were used, except for the MouseTrackingResult in one call was checked against kMouseTrackingTimedOut. Since the timeout was 0 and not kEventDurationForever, that value never could have been returned anyway. Instead of attempting to define SIntXX and UIntXX manually, MacTypes.h is included on OS X. These types were wrong in 64-bit mode because of this, causing type redefinition errors. |
||
---|---|---|
doc | ||
ext | ||
res | ||
src | ||
.gitignore | ||
.lvimrc | ||
CMakeLists.txt | ||
COMPILE | ||
COPYING | ||
ChangeLog | ||
INSTALL | ||
README | ||
configure | ||
hm.cmd | ||
hm.py | ||
hm.sh | ||
test |
README
Help: http://synergy-project.org/help/ Wiki: http://synergy-project.org/wiki/