! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Regression: xfce4-settings does not set "Xcursor.theme" xrdb anymore
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-settings
Component:
Settings Helper

Comments

Description Ivan Romanov 2011-11-27 14:09:17 CET
Hello.

I use Fedora 15 and XFCE 4.8.
Sometimes when I start up my PC and login I see black mouse pointer. In mouse settings I setuped dmz mouse pointer theme. When I see black mouse pointer i can do 'xfwm4 --replace' to get white mouse pointer.

I want to see allways white mouse pointer after loading my PC. 

Also when I change mouse pointer theme it doesn't applying immediately. Is it OK?
Comment 1 Olivier Fourdan editbugs 2011-11-28 09:16:47 CET
There are two things to consider here, one is the ability to apply/change the cursor there on the fly, that's bug 6854 which is planned for 4.10

The other thing is that the theme should be applied at startup, if not then it's either because of a bug in the settings manager or another settings manager takes precedence (but that would be an issue with the settings manager).

Anyhow, if xfwm4, this would be a duplicate of bug 6854.
Comment 2 Ivan Romanov 2012-01-09 05:52:27 CET
I also open issue on RedHet bugzilla. 
https://bugzilla.redhat.com/show_bug.cgi?id=757489

The last post.
Kevin Fenzi
Re-reading the xfce bug it seems like this is a xfwm4 issue when it doesn't
load the right cursor theme on login. Would you care to note that in the
upstream bug? I think he misunderstood that it wasn't applying on the fly as
you change it, which wasn't the case.
Comment 3 Vladimir Kravets 2012-04-11 11:15:28 CEST
Please notice that this issue related in 4.9 also with one note:
- Cursor theme is not applied for QT and Java application.
Comment 4 Olivier Fourdan editbugs 2012-04-11 11:22:03 CEST
The window manager does not set per app cursors, if it works with other apps but Java or Qt then it's a bug in Java and Qt.

The window manager is responsioble for updating the default cursor on the top level windows it manages, for the rest, it's up to the apps to deal with the cursor themes changes the way they like.
Comment 5 Vladimir Kravets 2012-04-11 14:08:24 CEST
Heh, in this case why in gnome for the same apps I see gnome mouse cursor theme?

Apps: skype (QA), IDEA Jetbrains (Java)
Comment 6 Olivier Fourdan editbugs 2012-04-11 14:21:07 CEST
(In reply to comment #5)
> Heh, in this case why in gnome for the same apps I see gnome mouse cursor
> theme?

I don't see this, changing the cursor theme in GNOME 2.x has no effect on KDE apps here.

Note this bug here is about xfwm4, not xfce as a whole. The test is simple enough for you to try, in xfce, open a terminal and run:

   metacity --replace &

Then try changing the cursor theme. Does that work with the apps you mentioned?
Comment 7 Vladimir Kravets 2012-04-11 14:43:12 CEST
I'd performed another check. I'd specified Xcursor.theme in the .Xdefaults configuration file in my home directory. After everything working as expected: I see the same cursor theme for mentioned apps (Skype, IDEA Jetbrains).

I don't have ability to check in KDE (I'm not using it). But in Gnome I didn't faced with such issue for Skype and Idea.
Comment 8 Vladimir Kravets 2012-04-11 14:45:55 CEST
(In reply to comment #6)
> Note this bug here is about xfwm4, not xfce as a whole. The test is simple
> enough for you to try, in xfce, open a terminal and run:
> 
>    metacity --replace &
> 
> Then try changing the cursor theme. Does that work with the apps you
> mentioned?

Ok if this is not xfwm, then for which product/area I need to open defect?

Please note the above answer... =)
Comment 9 Vladimir Kravets 2012-04-11 14:53:33 CEST
(In reply to comment #7)
> I'd performed another check. I'd specified Xcursor.theme in the .Xdefaults
> configuration file in my home directory. After everything working as
> expected: I see the same cursor theme for mentioned apps (Skype, IDEA
> Jetbrains).
> 
> I don't have ability to check in KDE (I'm not using it). But in Gnome I
> didn't faced with such issue for Skype and Idea.

Find such note on the Xorg faq page (http://xorg.freedesktop.org/wiki/AdvancedTopicsFAQ?highlight=%28mouse%29%7C%28cursor%29):

  xsetroot -cursor emptyCursor.xbm emptyCursor.xbm

NOTE: As mentioned this *only affects the root window cursor*. Modern window managers create their own root window. Its cursor is not affected by this. Also most applications define their own cursors. Moving a cursor over an application will cause its cursor to be displayed if it defines its own cursor. If it doesn't it will inherit the cursor of its parent window.

Is this means that QT and Java application uses as root window not XFCE?

Thanks,
Vladimir
Comment 10 Olivier Fourdan editbugs 2012-04-11 15:19:26 CEST
(In reply to comment #7)
> I'd performed another check. I'd specified Xcursor.theme in the .Xdefaults
> configuration file in my home directory. After everything working as
> expected: I see the same cursor theme for mentioned apps (Skype, IDEA
> Jetbrains).

That's two different mechanisms, the ".Xdefaults" can be parsed by the app at start up but won't change dynamically, unlike the XSettings "Gtk/CursorThemeName" set by Xfce settings and applied by GTK and GNOME applications.

If the applications do not implement this mechanism, the cursor changes won't be applied, it's that simple.

This is exactly what I observe here, neither Qt/KDE not Java/Swing apps seem to apply the "Gtk/CursorThemeName" XSettings.

> I don't have ability to check in KDE (I'm not using it). But in Gnome I
> didn't faced with such issue for Skype and Idea.

I try to avoid using or installing closed source software.

But the same can be observed with simple Java apps as well, no cursor theme applied to Swing based apps either, and I am in GNOME atm, so not an Xfce issue.

http://docs.oracle.com/javase/tutorial/uiswing/start/compile.html

I tried with the latest GNOME 3.4 and gnome-tweak-tool and the Java/Swing application does not change the cursor theme dynamically either, so I don't see the cursor theme being applied in Java /Swing app here, not in GNOME 2.x, nor in GNOME 3.4 either.

(In reply to comment #8)
> Ok if this is not xfwm, then for which product/area I need to open defect?

I don't know, you may want to investigate with those vendors, I do not see this working anywhere... Again, neither Qt/KDE not Java/Swing apps seem to listen/apply the "Gtk/CursorThemeName" XSettings.

(In reply to comment #9)
> Find such note on the Xorg faq page
> [...]
> Is this means that QT and Java application uses as root window not XFCE?

That sentence above does not make sense to me and sounds irrelevant in this bug report. Please note this is bugzilla, not a mailing list.

All of the above seems off topic in this xfwm4 bug report, as far as I can see xfwm4 works fine with the fix for bug 6854.
Comment 11 Olivier Fourdan editbugs 2012-04-11 16:41:51 CEST
Your issue is most likely related to bug #7014 and git commit 090a969d [1]

Does "xrdb -q" list "Xcursor.theme"? (*without* adding it to .Xdefaults of course)

[1] http://git.xfce.org/xfce/xfce4-settings/commit/?id=090a969dcc45237df4b0617962565c1ba5748eaf
Comment 12 Vladimir Kravets 2012-04-11 17:36:23 CEST
No, there is no Xcursor.theme in the output of the xrdb -q. Bug?
Comment 13 Vladimir Kravets 2012-04-11 17:56:44 CEST
It seem this is another issue and how Oliver mentioned this is related to xfce4-settings daemon.
Comment 14 Olivier Fourdan editbugs 2012-04-12 09:30:35 CEST
Reassigning to xfce4-settings, see comment 11
Comment 15 Nick Schermer editbugs 2012-04-12 09:43:20 CEST
Already fixed in master.

*** This bug has been marked as a duplicate of bug 8673 ***

Bug #8197

Reported by:
Ivan Romanov
Reported on: 2011-11-27
Last modified on: 2012-04-12

People

Assignee:
Nick Schermer
CC List:
6 users

Version

Attachments

Additional information