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 (closed) Signed-off-by: Olivier Fourdan firstname.lastname@example.org Reviewed-by: Simon Ser email@example.com Reviewed-by: Michel Dänzer firstname.lastname@example.org (cherry picked from commit 6ad6517a)