-
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
Move parser for XSETTINGS from winit to x11rb #922
Comments
Oh, wow, yet another format for something similar to the resource manager stuff... Google suggests that this has a spec: https://specifications.freedesktop.org/xsettings-spec/xsettings-latest.html So far, my approach was mainly "is there a xcb library for something?", but that's not a rule. So, yeah, I can see some usefulness in having something like that. Would the code in x11rb then also help in implementing a server? How could x11rb help in implementing this part of the spec (which winit also ignores):
This part is also currently ignored, but can easily be handled, I guess:
Due to #883, I have another spontaneous idea: Should all these parsers be moved to separate crates so that they can actually build in parallel? But I guess that's a different topic and there would not be much benefit since they are actually quite small... But separate crates could have Edit: Some lists of possible setting names: https://codeberg.org/derat/xsettingsd#settings https://www.freedesktop.org/wiki/Specifications/XSettingsRegistry/ |
I suppose it's probably better to have it in a separate crate, yes. |
Having parsers in separate crates will be fine, I guess. Though, would be nice to have them discoverable. Also, there's |
In rust-windowing/winit#3222 I added a parser for the data format found by querying the
_XSETTINGS_SETTINGS
atom. However this parser is notwinit
-specific. I think it could be useful outside ofwinit
.x11rb
has parsers for other X11-specific formats already (e.g.xcursor
, the resource manager), so I think it would make the most sense to move it here. What do the other maintainers think?cc @kchibisov
The text was updated successfully, but these errors were encountered: