Asbjorn Kjaer
d93ff2f53f
Fix comment #2975
2016-08-08 14:27:13 +01:00
Asbjorn Kjaer
5901fa8aed
Correctly translate mouse events to the right and middle buttons #2975
2016-08-08 14:27:13 +01:00
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
Jerry (Xinyu Hou)
5661a41d42
Fix code style
2016-03-15 12:57:06 -07:00
XinyuHou
e5c1821088
Outpup log before return #4740
2016-03-15 12:57:06 -07:00
Jerry (Xinyu Hou)
3ce078f0e8
Fix wrong elevate information #5041
2016-03-15 12:57:06 -07:00
Jerry (Xinyu Hou)
70104190e4
Add elevate log info #5041
2016-03-15 12:57:06 -07:00
Jerry (Xinyu Hou)
20d9b80291
Remove checking system clipboard formats #5041
2016-03-15 12:57:06 -07:00
Jerry (Xinyu Hou)
1ac8db56d9
Revert "Workaround for Issue #5041 - prevent synergys from shutting down when screen saver activates"
...
This reverts commit beac70f90c37b626cb7b0ea7bf2d18fdd3729013.
2016-03-15 12:57:06 -07:00
Jerry (Xinyu Hou)
92a3c47ed2
Revert "Issue #5041 - properly update activeDesk and activeDeskName when screen saver activates"
...
This reverts commit 3615add7b80838dc8b93cb89f2c8f87254db6c21.
2016-03-15 12:57:06 -07:00
Jerry (Xinyu Hou)
da5e9527a3
Revert "Refactor Issue #5041 workaround to make sure we still send the SCREENSAVER message"
...
This reverts commit 43ba3e889f88e526673ff70caf2b3efe26b13363.
2016-03-15 12:57:05 -07:00
Jerry (Xinyu Hou)
4d19941428
Revert "Revert to old behavior of checkDesk(), add workaround to broken EnumClipboardFormats() in the case where the server is started while the screen saver is active."
...
This reverts commit 38209e5079d1695ddd561f8045647e077fccff91.
2016-03-15 12:57:05 -07:00
Jerry (Xinyu Hou)
42038ce24e
Revert "Minor cosmetic change - missing some debug stuff in this branch."
...
This reverts commit bd660fedbfbff2df1bf5921826dd7717c2839161.
2016-03-15 12:57:05 -07:00
Jerry (Xinyu Hou)
4344b16a20
Remove some hack code #2909
2016-03-15 12:57:05 -07:00
Jerry (Xinyu Hou)
6d0f820db5
Fix indentations
2016-03-15 12:57:05 -07:00
Jerry (Xinyu Hou)
ee20d08080
Revert "Revert "Fixed using wrong local variable #4723 ""
...
This reverts commit a0beae0f4b5578a16178e6324f2d1f588caeb442.
2016-03-15 12:51:42 -07:00
Jerry (Xinyu Hou)
5fae9efe78
Revert "Revert "Added timeout for waiting active destop result #4723 ""
...
This reverts commit 0f8a5687719605af59d901f08dfbb5dde74a7dc9.
2016-03-15 12:51:42 -07:00
Jerry (Xinyu Hou)
2fb36c4f86
Revert "Revert "workaround for Fast cursor on any client with Mac server #451 ""
...
This reverts commit 6470240379c896ee13ee98b9a8c951d22f4351c1.
2016-03-15 12:51:22 -07:00
Nye Liu
6f904e55f1
Minor cosmetic change - missing some debug stuff in this branch.
2016-03-15 12:47:34 -07:00
Nye Liu
bab2e985a3
Revert to old behavior of checkDesk(), add workaround to broken EnumClipboardFormats() in the case where the server is started while the screen saver is active.
2016-03-15 12:47:33 -07:00
Nye Liu
425fc8b925
Refactor Issue #5041 workaround to make sure we still send the SCREENSAVER message
2016-03-15 12:47:33 -07:00
Nye Liu
9036d42469
Issue #5041 - properly update activeDesk and activeDeskName when screen saver activates
...
Ensure that we actually kill the server if we go from screen saver desk to real
desk.
2016-03-15 12:47:33 -07:00
Nye Liu
1fc28392d0
Add error message to help debug Issue #5041
2016-03-15 12:47:33 -07:00
Nye Liu
3e37518b92
Workaround for Issue #5041 - prevent synergys from shutting down when screen saver activates
...
When it is restarted, and screen saver is active, the clipboard no longer works
correctly.
The desk swap detection routine just below does not work properly when the
desktop goes from screensaver back to normal. If it did, probably this
workaround would not be needed.
2016-03-15 12:47:33 -07:00
Nye Liu
b85b9125ea
Remove inadvertent additions
2016-03-15 12:46:45 -07:00
Nye Liu
8f0530c507
Add retry to CondVarBase wait(), make sure Stopwatch is started on construction (Issue #4735 )
...
* ArchMultithreadPosix::waitCondVar() returns every 100ms, so retry until we
hit timeout.
* Stopwatch constructor should be called with "false" (not "true") to make sure
Stopwatch is actually running when instantiated.
2016-03-15 12:46:45 -07:00
Jerry (Xinyu Hou)
0207b697e3
Remove debug logging #5030
2015-11-30 12:01:00 -08:00
Jerry (Xinyu Hou)
42f201785c
Revert "Added timeout for waiting active destop result #4723 "
...
This reverts commit aec52c36e6
.
2015-11-24 11:53:38 -08:00
Jerry (Xinyu Hou)
539ac32136
Revert "Fixed using wrong local variable #4723 "
...
This reverts commit d7063a87c8
.
2015-11-24 11:53:18 -08:00
Jerry (Xinyu Hou)
8a2106a09e
Revert "workaround for Fast cursor on any client with Mac server #451 "
...
This reverts commit 267f3ac41f
.
2015-11-24 11:40:04 -08:00
Jerry (Xinyu Hou)
fa8a0ebbfe
Make center point be aware of DPI scaling #5030
2015-11-19 13:46:48 -08:00
Jerry (Xinyu Hou)
c259af9b41
Fix code style
2015-11-19 13:46:48 -08:00
Jerry (Xinyu Hou)
a09bfc5f07
Fix high DPI breaking edge detection and mouse delta calculation #5030
2015-11-19 13:46:46 -08:00
Jerry (Xinyu Hou)
86d5567e74
Removed redundant logging #4721
2015-07-31 13:57:18 -07:00
Jerry (Xinyu Hou)
5d61996405
Fixed code style #4712
2015-07-31 13:56:58 -07:00
Xinyu Hou
5a9cbc97e3
Fixed code style
...
Conflicts:
src/lib/arch/win32/ArchPluginWindows.cpp
2015-07-31 13:51:48 -07:00
Jerry (Xinyu Hou)
9483fecc42
Fixed code style
...
Revert "Moved note into either warning or info #4745 "
This reverts
commit d3a4ce1f11
.
Revert "Changed note to notify #4745 "
This reverts commit
5006adedfe
.
Conflicts:
src/test/unittests/ipc/IpcLogOutputterTests.cpp
Shortened transmission log #4858
Revert "Added code to throw an error if the plugin can't be deleted or
written to #4696 "
This reverts commit
5696497bc0
.
2015-07-31 13:17:12 -07:00
Jerry
23739f8484
Prevented open clipboard twice #4815
2015-07-06 13:00:28 -07:00
kahiroka
267f3ac41f
workaround for Fast cursor on any client with Mac server #451
2015-06-19 17:20:26 -07:00
Xinyu Hou
5cbcd74028
Fixed using NOTE level logging on Mac #4745
2015-06-01 23:42:58 +01:00
Jerry (Xinyu Hou)
d7063a87c8
Fixed using wrong local variable #4723
2015-05-27 10:32:13 -07:00
Jerry (Xinyu Hou)
aec52c36e6
Added timeout for waiting active destop result #4723
2015-05-27 10:18:45 -07:00
Jerry (Xinyu Hou)
f063b094ec
Used log system instead of stdout #4690
2015-05-26 17:12:58 -07:00
Jerry (Xinyu Hou)
c22e327eed
Merge remote-tracking branch 'origin/master' into jerry-sandbox
2015-05-21 11:37:42 -07:00
Jerry (Xinyu Hou)
7dbe30cb61
Fixed Linux uses wrong clipboard event #4601
2015-05-20 14:43:58 -07:00
Xinyu Hou
49ac320f97
Refactored clipboard event into ClipboardEvent #4601
2015-05-20 19:09:54 +01:00
Nick Bolton
561204b2a7
Disabled threading on most IPC logging tests #4624
...
Threading was making it very hard to reliably run the IPC logging tests
(many timing issues), so I disabled threading for most of the tests.
2015-05-20 17:42:07 +01:00
Nigel Armstrong
d71304ee55
Modified header of every file COPYING to LICENSE
...
Modified to match the updated name of the license file
2015-05-06 22:12:44 -04:00
jpmcmu
8cd256a0b2
Removed stray character.
2015-04-23 07:04:29 -04:00
jpmcmu
9978a85a4f
Added modifier flags to mouse events as a fix for sticky keys.
2015-04-22 19:33:25 -04:00