fix(connector): fix cursor rendering in Windows 2019 (#444)

This change fixes cursor rendering in Windows 2019 and older.
Previously only text cursor was rendered, all others defaulted to native cursor from client.

Set of flags matches what is used in FreeRDP.
This commit is contained in:
Przemko Robakowski
2024-04-23 08:00:30 -04:00
committed by GitHub
parent 90b3f63e29
commit fefcdc42fe
@@ -337,7 +337,9 @@ fn create_client_confirm_active(
// Setting `LargePointerSupportFlags::UP_TO_384X384_PIXELS` allows server to send
// `TS_FP_LARGEPOINTERATTRIBUTE` update messages, which are required for client-side
// rendering of pointers bigger than 96x96 pixels.
flags: LargePointerSupportFlags::UP_TO_384X384_PIXELS,
// `LargePointerSupportFlags::UP_TO_96X96_PIXELS` is needed for proper cursor behavior
// in Windows 2019 and older
flags: LargePointerSupportFlags::UP_TO_96X96_PIXELS | LargePointerSupportFlags::UP_TO_384X384_PIXELS,
}),
CapabilitySet::SurfaceCommands(SurfaceCommands {
flags: CmdFlags::SET_SURFACE_BITS | CmdFlags::STREAM_SURFACE_BITS | CmdFlags::FRAME_MARKER,