-
Notifications
You must be signed in to change notification settings - Fork 41
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
Improve find cursor #936
Improve find cursor #936
Conversation
First: Due to #934 asking for all of this code to be replaced by the
Why is it that way on your system? I am pretty sure that xcursor-rs also only splits on So, does your space-separates
That seems to be done by libXcursor (it prefers the env var over the resource database), but does not seem to be done by xcursor-rs. |
You didn't, it was a brain-fart on my part... I ran
As of 070e2bb |
Could you squash this into a single commit and perhaps rebase onto master? Thanks. #934 is now dealt with and the code you are touching is still there. Sorry, previously I thought that this code would go away with that change. |
Fallback to $XCURSOR_THEME when database doesn't have a cursor theme Revert splitting on ' ' Try $XCURSOR_THEME before Xcursor.theme
070e2bb
to
3bb2990
Compare
All done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This pr does two things. When
load_cursor
now splits the$XCURSOR_PATH
variable on both':'
and' '
, on my system$XCURSOR_PATH
is separated by spaces. Second,cursor::Handle::new
now checks$XCURSOR_THEME
if gettingXcursor.theme
from theresource_database
fails.