XWayland: wrong cursor color displayed
Affected version
Fedora 36 (Rawhide) / GNOME Shell 42.alpha
Bug summary
Cursor created with XCreatePixmapCursor
is not displayed correctly.
Steps to reproduce
wrongCursorColor.c
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
What happened
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);