You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No idea what to do about this. Your crate does not have an X11 connection and does not have access to the X11 resource database. So, the only idea that would come to my mind would be turn this into the caller's problem: Add a new function that needs to pass in e.g. an Option<&str> containing the value of Xcursor.theme.
(x11rb also does not implement this fallback and neither does libxcb-cursor, which was used as the inspiration for x11rb's implementation)
The text was updated successfully, but these errors were encountered:
I'm actually not too familiar with that X11 resource, but isn't that just a way to specify a cursor theme name, not to override where it is searched for? If you look at the libXcursor source, it looks for that resource if the variable XCURSOR_THEME is not specified, while the only envvar this crate reads is XCURSOR_PATH.
I think you should just be able to call CursorTheme::load with the appropriate name, and on your side implement the logic to read the Xresource, if necessary.
Hi there,
I just got a PR about the cursor implementation in x11rb: psychon/x11rb#936
Due to that, I looked at what libXcursor is doing and found a difference to your crate. libXcursor falls back to using
Xcursor.theme
from the X11 resource database if$XCURSOR_THEME
is not set. xcursor-rs instead seems to fall back to XDG data directory if the env var is missing.No idea what to do about this. Your crate does not have an X11 connection and does not have access to the X11 resource database. So, the only idea that would come to my mind would be turn this into the caller's problem: Add a new function that needs to pass in e.g. an
Option<&str>
containing the value ofXcursor.theme
.(x11rb also does not implement this fallback and neither does libxcb-cursor, which was used as the inspiration for x11rb's implementation)
The text was updated successfully, but these errors were encountered: