After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772966 - [wayland] for nonexisting named cursor, gdk_cursor_new_from_name returns a blank cursor instead of NULL
[wayland] for nonexisting named cursor, gdk_cursor_new_from_name returns a bl...
Status: RESOLVED DUPLICATE of bug 773077
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 773124 773488 774973 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-10-15 04:34 UTC by jaha
Modified: 2016-11-23 23:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jaha 2016-10-15 04:34:49 UTC
Aisleriot version: 3.22.0+5+gb3024a2-1
OS: Arch Linux, 64-bit

Moving the mouse cursor over a card, or while dragging a card with the mouse, the mouse cursor is hidden. The mouse cursor is only visible while it is over the playing area where no cards are. For games (like Klondike) that have a stack to draw new cards from, the mouse cursor is visible when moving it over the stack of face-down cards to draw new cards from.
Comment 1 jaha 2016-10-17 06:31:26 UTC
Update: this bug only occurs when running a Wayland session, which is now the default with GNOME 3.22. The bug can not be reproduced after switching to a Xorg session.
Comment 2 Christian Persch 2016-10-17 08:30:01 UTC
This is a gdk bug. On X, gdk_cursor_new_from_name returns NULL when the named cursor doesn't exist — and it is documented to do so! —, but on wayland, it never returns NULL but instead a blank (invisible) cursor.

Running aisleriot on weston, I get these messages:
(sol:3723): Gdk-WARNING **: gdkcursor-wayland.c:170: Unable to load openhand from the cursor theme

(sol:3723): Gdk-WARNING **: gdkcursor-wayland.c:170: Unable to load closedhand from the cursor theme

(sol:3723): Gdk-WARNING **: gdkcursor-wayland.c:170: Unable to load double_arrow from the cursor theme


Aisleriot does handle NULL, but since the function never returns NULL, the fallback cursors aren't loaded and instead those blank cursors used.

-> gtk:wayland
Comment 3 Matthias Clasen 2016-10-17 09:52:37 UTC
It may well be that there is a behavior difference between the x11 and wayland backends. But the right fix for aisleriot is to use the documented, standard cursor names.
Comment 4 Christian Persch 2016-10-17 20:14:31 UTC

*** This bug has been marked as a duplicate of bug 773077 ***
Comment 5 Christian Persch 2016-10-17 20:59:26 UTC
*** Bug 773124 has been marked as a duplicate of this bug. ***
Comment 6 Christian Persch 2016-10-25 20:09:42 UTC
*** Bug 773488 has been marked as a duplicate of this bug. ***
Comment 7 Christian Persch 2016-11-23 23:54:38 UTC
*** Bug 774973 has been marked as a duplicate of this bug. ***