-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GTK cursor sets to default after suspend #9441
Comments
cant repro this |
Across reboots are fine for me as we had |
the only thing i could find was this: Hyprland/src/managers/XCursorManager.cpp Line 611 in 6d25ef0
Hyprland/src/managers/XCursorManager.cpp Line 612 in 6d25ef0
it's related to: sync_gsettings_theme hyprland doesn't read from gsettings its only writing to it, something else is affecting the cursor theme. |
Uhm I think it's still hyprland. It's hard to scroll code on my phone but will you also please check the method to get the |
actually i was wrong a bit.. but still though, default is only set as the last resort . way too many conditionals for me to count |
so when hyprcursor is enabled: first it tries to use whatever theme name u gave it So, if XCURSOR_THEME is set then: default, should never be used even if hyprcursor fails |
I will try to repro this on an isolated env and will let you know. |
I see, this holds true when XCURSOR is set. I think you can repro now if you comment out any How about instead of XCURSOR env we use dconf to access the database? |
idk up to @vaxerski but hes lazy |
Are there any method to query |
idk the codebase is so large ive only recently started committing to it |
looks like a dbus interface. We don't interact with dbus in hl at all. Besides, that's a gnome interface. |
maybe we need a new fallback before we set default, any ideas @vaxerski |
Do setting this to false prevent Hyprland to modify the gsettings' cursor theme? |
yes |
i would more of say its intended, not entirerly familiar with how suspend works but gsettings is not permanent. so you probably have it set, suspend, and wakeup and its "reset" and unless something sets it again it will just become "default". so the bug might more be that sync_gsettings perhaps should sync again once you wake up from suspend |
Nope, it can be saved in a dconf database. But if I understand correctly, hyprland queries from dbus which works perfectly fine as long as it's active. But in situations like on resume from suspend, maybe dbus is not yet available when hyprland sets the xcursor/GTK cursor. Also resetting the database returns '' (null) not "default" Note that I cannot replicate this on TTY. And only happens when hyprland returns from suspend. For environments that implement their own cursor theming scripts, I am expecting for If Or am I misinterpreting this var? |
Already reported ? *
Regression?
Not a regression - it's an old bug, Probably not a regression / I don't remember it happening before
System Info and Hyprland Version
System/Version info
Description
So this 5-month-old thread sums it up https://www.reddit.com/r/hyprland/comments/1fcpt30/gtk_cursor_theme_keeps_resetting/
How to reproduce
Hyprland sets my gtk cursor to
default
.I cannot replicate this on TTY.
Attach not paste
Checklist of files to include below
hyprctl systeminfo -c
(always include)Additional info & File uploads
hyprland_config_dump.txt
I tried this Reddit comment using gnome tweaks, but it's no use. Also, I always run
dconf reset -f /
on our theme change, therefore It probably simulates the reset i gnome tweak.And also toggling
cursor:sync_gsettings_theme
to true/false doesn't do anything.The text was updated successfully, but these errors were encountered: