Bug 524148 - Server transmits to the RDP client the colorful cursor pointer in wrong colors
Summary: Server transmits to the RDP client the colorful cursor pointer in wrong colors
Status: RESOLVED FIXED
Alias: None
Product: KRdp
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.7.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-11 10:54 UTC by Chimmie
Modified: 2026-10-19 15:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.1
Sentry Crash Report:


Attachments
krdp log (6.07 KB, text/plain)
2026-08-11 11:08 UTC, Chimmie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chimmie 2026-08-11 10:54:40 UTC
DESCRIPTION

Whenever using a colorful mouse pointer on KDE, the KRdp server transmits to the RDP client the wrong color scheme.

STEPS TO REPRODUCE
1. Use any custom mouse pointer which has red, blue or green colors
2. Launch KRdp and connect to it
3. see lack of blue or green color on the cursor, only red is visible

OBSERVED RESULT

KRdp doesn't fetch correctly the color scheme from the mouse pointer.

EXPECTED RESULT

The RDP client receives all colors of the mouse pointer.

SOFTWARE/OS VERSIONS
Operating System: Chimera Linux
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION

Tested on Apache Guacamole & Remmina Client. I'm using LyraP cursors.
Comment 1 Chimmie 2026-08-11 11:08:26 UTC
Created attachment 195062 [details]
krdp log
Comment 2 Bug Janitor Service 2026-10-19 14:59:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/krdp/-/merge_requests/267
Comment 3 Bug Janitor Service 2026-10-19 15:15:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/krdp/-/merge_requests/268
Comment 4 David Edmundson 2026-10-19 15:27:56 UTC
Git commit fe2671e1f01f5abb629f557732859cc2aa281487 by David Edmundson.
Committed on 19/10/2026 at 15:14.
Pushed by davidedmundson into branch 'Plasma/6.8'.

Cursor: Don't swap red and blue channels of cursor images

createXorMask() converts the cursor image to QImage::Format_ARGB32, whose
in-memory byte order on little-endian machines is B, G, R, A. That is
already the layout expected for the 32 bpp XOR mask of color and large
pointer updates. The additional rgbSwap() turned it into R, G, B, A, so
clients showed colored cursors with red and blue swapped.

(cherry picked from commit 608a68b01e7ade8794aef0cea63ca99a3d97db04)

Co-authored-by: Zhongli Wu <wuzhonglijz@gmail.com>

M  +0    -1    src/Cursor.cpp

https://invent.kde.org/plasma/krdp/-/commit/fe2671e1f01f5abb629f557732859cc2aa281487