Open-source KVM software
Go to file
Erik Swan 5e35fe2c1b Fix mouse speed increase with sleep on Mac server
As reported in #451, with the Mac server, sleeping and resuming (on the
server) causes the mouse speed to double on the client upon resume.

Fix by removing the CFRunLoopSource from the run loop on screen disable
before releasing it. CFRunLoopAddSource in enable() retains the
CFRunLoopSource, so even though the source is released in disable(), the
run loop still has a copy. When the server comes out of sleep and the
screen is enable()'d, another event tap and run loop source are created
and added to the run loop, so the callback is now being called twice for
every mouse movement, and so on for every additional time the server
sleeps.

This is a better approach than the fix in 267f3ac41f, because although
that fixes the issue by disabling the event tap before the event tap and
run loop source are released, a memory leak still occurs since they are
retained by the run loop.

Additional references on the behavior of CFRunLoopAddSource:
https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFRunLoopRef/index.html#//apple_ref/c/func/CFRunLoopAddSource
http://www.cocoabuilder.com/archive/cocoa/242438-trouble-with-event-taps.html
2016-03-15 12:57:54 -07:00
doc Remove Deadlinks 2014-11-12 20:48:34 -05:00
ext Revert "Update search pattern for src type #5136" 2015-11-30 16:44:17 -08:00
res Adding install of plugins for rpm based systems #4696 2015-06-05 11:20:31 -07:00
src Fix mouse speed increase with sleep on Mac server 2016-03-15 12:57:54 -07:00
.gitignore Update git ignore list 2015-11-19 13:46:47 -08:00
.lvimrc moving 1.4 to trunk 2012-06-10 16:50:54 +00:00
CMakeLists.txt Version to 1.8.1 2015-11-30 18:03:52 -08:00
COMPILE changed synergy-foss.org to synergy-project.org 2014-05-08 07:33:35 +00:00
ChangeLog Update changelog 2015-11-30 16:45:53 -08:00
INSTALL changed synergy-foss.org to synergy-project.org 2014-05-08 07:33:35 +00:00
LICENSE Rename license to LICENSE closes #4487 2015-05-06 22:07:36 -04:00
README Clarified "free as in free speech" 2015-01-03 12:23:47 +00:00
configure moving 1.4 to trunk 2012-06-10 16:50:54 +00:00
hm.cmd moving 1.4 to trunk 2012-06-10 16:50:54 +00:00
hm.py Modified header of every file COPYING to LICENSE 2015-05-06 22:12:44 -04:00
hm.sh moving 1.4 to trunk 2012-06-10 16:50:54 +00:00

README

Synergy
=======

Share one mouse and keyboard between multiple computers.

Synergy is free and open source (free as in free speech),
meaning you are free to run it and redistribute it with
or without changes.

Just use "hm conf" and "hm build" to compile (./hm.sh on
Linux and Mac).

For detailed compile instructions:
http://synergy-project.org/wiki/Compiling

Happy hacking!