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 660353 - Adwaita X11 cursor theme not used
Adwaita X11 cursor theme not used
Status: RESOLVED INCOMPLETE
Product: gnome-themes-standard
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
Depends on:
Blocks:
 
 
Reported: 2011-09-28 12:26 UTC by Andre "Osku" Schmidt
Modified: 2013-01-25 22:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xorg-misc-fonts default left_ptr cursor versus adwaita cursor (1.07 KB, image/png)
2011-09-28 12:26 UTC, Andre "Osku" Schmidt
Details

Description Andre "Osku" Schmidt 2011-09-28 12:26:26 UTC
Created attachment 197655 [details]
xorg-misc-fonts default left_ptr cursor versus adwaita cursor

On Archlinux Gnome doesn't use the X11 cursor theme Adwaita, but rather the xorg default cursor theme xorg-fonts-misc /usr/share/fonts/misc/cursor.pcf.gz.

`gsettings get org.gnome.desktop.interface cursor-theme` does have 'Adwaita'.

Fedora seems to do it by adding icons/default/index.theme defining Inherits=Adwaita in libXcursor package... http://pkgs.fedoraproject.org/gitweb/?p=libXcursor.git;a=tree which makes me wonder, is this upstream or downstream job?

(screenshot: left: xorg default cursor, right: Adwaita cursor)
Comment 1 Ionut Biru 2011-09-28 12:30:50 UTC
what i wonder is why it works in firefox and once I move the cursor outside of the window, even when i'm on the edge to window decoration, the cursor changes.
Comment 2 Vincent Untz 2011-09-28 12:31:33 UTC
Moving to gnome-themes-standard, where people will know better :-)
Comment 3 Cosimo Cecchi 2011-09-28 17:33:58 UTC
(In reply to comment #1)
> what i wonder is why it works in firefox and once I move the cursor outside of
> the window, even when i'm on the edge to window decoration, the cursor changes.

Okay, so your problem is you don't get the xorg cursor outside of Firefox basically?
Comment 4 Ionut Biru 2011-09-28 17:35:46 UTC
Adwaita cursor is not available in desktop but only in firefox/thunderbird.
Comment 5 Cosimo Cecchi 2011-09-28 17:54:01 UTC
(In reply to comment #0)

> Fedora seems to do it by adding icons/default/index.theme defining
> Inherits=Adwaita in libXcursor package...
> http://pkgs.fedoraproject.org/gitweb/?p=libXcursor.git;a=tree which makes me
> wonder, is this upstream or downstream job?

Ok I see what you mean now.

After talking with Matthias on IRC and googling information about this for a bit, it looks like setting Inherit=$theme in /usr/share/icons/default/index.theme is indeed the supported way of setting the global cursor theme.
Note this doesn't mean you need to hardcode that in the libXcursor package like Fedora does; Debian-based distros e.g. seem to be able to control this setting with an update-alternatives option.
Comment 6 Cosimo Cecchi 2011-09-28 17:55:06 UTC
Oh, Fedora also uses 'gtk-cursor-theme-name = Adwaita' in /etc/gtk-3.0/settings.ini, which might be part of the reason why you don't get the cursor in GTK applications.
Comment 7 Ionut Biru 2011-09-28 17:59:37 UTC
I know in gnome 2.x we could had cursor themes and worked fine. What is the problem now that it couldn't be used automatically?

Hardcoding that it seems like a workaround and if i use other theme, the cursor will be Adwaita instead the one from the new theme.
Comment 8 Jasper St. Pierre (not reading bugmail) 2011-10-12 19:56:27 UTC
On Fedora 16:

$ gconftool-2 -g /desktop/gnome/peripherals/mouse/cursor_theme
dmz-aa

Seems like our problem. We need to be packaging "Adwiata" for this schema.
Comment 9 Matthias Clasen 2011-10-14 11:54:05 UTC
The gconf key is a leftover on your system. We don't even install those schemas anymore.

The libXcursor defaults are used for non-gtk applications.

Applications generally inherit the cursor from the root window, so to check whether an application uses the right cursor theme, you have to go to widget that explicitly sets a cursor, such as an entry.
Comment 10 Jasper St. Pierre (not reading bugmail) 2011-10-14 12:15:00 UTC
(In reply to comment #9)
> The gconf key is a leftover on your system. We don't even install those schemas
> anymore.

The problem is that metacity/mutter still reads those keys:

  http://git.gnome.org/browse/mutter/tree/src/core/prefs.c#n468
Comment 11 Cosimo Cecchi 2013-01-25 22:39:24 UTC
Mutter got ported to GSettings, and I just tried setting a different cursor using 'gsettings set org.gnome.desktop-interface cursor-theme' and it worked fine.

I don't think there's anything to fix in Adwaita - closing as INCOMPLETE, feel free to reopen if you think this still applies.