Skip to content
Commit 323b7ebd authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

RemoteDesktop: Fix relativity of absolute pointer motion

According to the interface, the given pointer coordinates are in logical
coordinates relative to the specified stream. We were completely
ignoring that, instead having a global "streamed screen position", which
was set to whatever the last stream was that was started. This breaks
when using multiple streams, causing all input to be relative to the
last stream.

To fix this, add a "geometry" getter to ScreencastingStream that gets
set to the stream's geometry when created. Then, in
requestPointerMotionAbsolute, we lookup the requested stream and use
it's topLeft as offset to the provided mouse position.
parent 4dc89b08
Pipeline #450944 passed with stage
in 1 minute and 35 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment