XWayland: wrong cursor color displayed
Fedora 36 (Rawhide) / GNOME Shell 42.alpha
Cursor created with
XCreatePixmapCursor is not displayed correctly.
Steps to reproduce
This reproducer tries to display yellow X11 logo while mouse cursor is over its window.
Compile and run testcase with
gcc wrongCursorColor.c -o wrongCursorColor -lX11 && ./wrongCursorColor
Place mouse cursor over the test window
White logo displayed
What did you expect to happen
Yellow logo displayed
Relevant logs, screenshots, screencasts etc.
However provided reproducer works correctly for several colors(e.g. white or red).
You can play with it by changing following line in test:
XParseColor(display, colormap, "yellow", &fg_color);