Commit 6ad6517a authored by Olivier Fourdan's avatar Olivier Fourdan 🛠
Browse files

xwayland: Fix cursor color

When using colored X11 cursors, the colors would appear wrong, yellow
would show white, green would show as cyan, and blue would show black
whereas red would show fine.

This is because the code expanding the cursor data accounts for green
for both green and blue channels. Funnily this bug has been there from
the beginning.

Fix the issue by correctly account for the color channels.

Closes: #1303

Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <>
Reviewed-by: Simon Ser's avatarSimon Ser <>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <>
parent 1801fe0a
Pipeline #506736 passed with stages
in 5 minutes and 6 seconds