! 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 !
mouse cursor theme update without restart
Status:
RESOLVED: FIXED
Priority:
Very Low
Severity:
enhancement

Comments

Description Matthew Rahtz 2010-11-18 16:31:31 CET
Created attachment 3195 
git-format patch

When a new mouse cursor theme is selected through xfce4-mouse-settings, it would be nice if the cursor updated instantly, rather than requiring a restart of xfwm4.

A patch with a sample implementation is attached, based on git commit 243195d115491e9ebf7864cc98274929f6c112fe.

Thanks! :)
Comment 1 Olivier Fourdan editbugs 2010-11-18 17:30:43 CET
Thanks for the patch.

I agree this would be neat yet I do not think that using xfconf is the right way to achieve this.
Comment 2 Matthew Rahtz 2010-11-18 17:54:04 CET
Since xfconf stores the xsettings property 'Gtk/CursorThemeName', which has to be 
changed anyway, it seems best to just listen on that instead of creating some mechanism specifically for notifying xfwm it has to redefine the cursors.

If you have an alternate suggestion, I'd gladly be willing to try implementing another patch. :)
Comment 3 Olivier Fourdan editbugs 2010-11-18 17:57:04 CET
xfwm4 can work and operate without xfce.

I believe gtk has a signal for that, but I just don't remeber...
Comment 4 Lionel Le Folgoc 2011-09-22 16:55:09 CEST
"notify::gtk-cursor-theme-name" and "notify::gtk-cursor-theme-size" from GtkSettings maybe?
Comment 5 Matthew Rahtz 2011-09-24 15:10:15 CEST
Created attachment 3881 
nicer git-format patch
Comment 6 Matthew Rahtz 2011-09-24 15:11:34 CEST
Comment on attachment 3881 
nicer git-format patch

Oh, cool. Here's another patch.
Comment 7 Olivier Fourdan editbugs 2011-10-19 21:30:49 CEST
Thanks for the patch!

Unfortunately, this is not sufficient, the cursors need to be updated for all sub-windows of all frames of all clients on all screens (for the various resize shape as well)

So the version I committed as git commit 7eff3d69 is based on your patch but slightly different.
Comment 8 Nick Schermer editbugs 2012-02-12 18:19:50 CET
*** Bug 7683 has been marked as a duplicate of this bug. ***

Bug #6854

Reported by:
Matthew Rahtz
Reported on: 2010-11-18
Last modified on: 2012-02-12
Duplicates (1):
  • 7683 Mouse cursors working partially only after the theme change.

People

Assignee:
Olivier Fourdan
CC List:
5 users

Version

Attachments

git-format patch (24.10 KB, patch)
2010-11-18 16:31 CET , Matthew Rahtz
no flags
nicer git-format patch (7.04 KB, patch)
2011-09-24 15:10 CEST , Matthew Rahtz
no flags

Additional information