-
-
Notifications
You must be signed in to change notification settings - Fork 23.8k
Update documentation for DisplayServer::FEATURE_ICON
#113875
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
Conversation
Hi, I don't think that we should do this, as it would be unreliable info in a few ways. This is a new standard extension that might be implemented by certain compositors, depending on whether they even have a concept of icons in the first place. Additionally, most distros take a while to ship the latest compositor versions anyways, so even once support is added, it will take some time to "percolate" down into common usage. Perhaps we could specify that it depends on this specific extension though, so that users can check that themselves with tools like FTR, we can't assume any specific extension to be there, that's why a lot of features might not work on certain compositors. That's just the nature of the Wayland ecosystem, and not too unlike to certain graphics drivers or GPUs missing certain extensions. This is definitely quite a different paradigm compared to previous software configurations, and something that I'm still looking into how to communicate effectively. |
|
@deralmas How about
to just add a little more specificity? |
|
I wouldn't mention KWin explicitly, but instead link to https://wayland.app/protocols/xdg-toplevel-icon-v1#compositor-support for an evolving list of which compositors support the protocol. |
|
I agree with akien, again, mentioning specific stuff "at the time of writing" would still be inaccurate (different distro policies) and get outdated fast. +1 on the idea of linking wayland.app, which is the de-facto standard documentation viewer for all protocols. |
|
Alright, how about
|
|
I think that the general structure you've proposed is good, for now. Regarding the exact grammar, I'd change "requires... to implement the xdg_toplevel_icon_v1." to "requires... to implement the xdg_toplevel_icon_v1 protocol.". ("protocol" is Wayland parlance for "extension") That said, IMO, in the long term we should probably find a good way to communicate that "not all compositors implement x protocol" is implicit, especially if we plan to document the relevant protocol(s) for each feature. Perhaps we could eventually make a "Wayland support" doc page and link it? |
|
Alright, the documentation file's been updated |
doc/classes/DisplayServer.xml
Outdated
| <constant name="FEATURE_ICON" value="13" enum="Feature"> | ||
| Display server supports changing the window icon (usually displayed in the top-left corner). [b]Windows, macOS, Linux (X11)[/b] | ||
| Display server supports changing the window icon (usually displayed in the top-left corner). [b]Windows, macOS, Linux (X11/Wayland)[/b] | ||
| [b]Note:[/b] Use on Wayland requires the compositor to implement the [url=https://wayland.app/protocols/xdg-toplevel-icon-v1#xdg_toplevel_icon_v1]xdg_toplevel_icon_v1[/url] protocol, which not all compositors do. See [url=https://wayland.app/protocols/xdg-toplevel-icon-v1#compositor-support]xdg_toplevel_icon_v1#compositor-support[/url] for more info on individual compositor support. |
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.
| [b]Note:[/b] Use on Wayland requires the compositor to implement the [url=https://wayland.app/protocols/xdg-toplevel-icon-v1#xdg_toplevel_icon_v1]xdg_toplevel_icon_v1[/url] protocol, which not all compositors do. See [url=https://wayland.app/protocols/xdg-toplevel-icon-v1#compositor-support]xdg_toplevel_icon_v1#compositor-support[/url] for more info on individual compositor support. | |
| [b]Note:[/b] Use on Wayland requires the compositor to implement the [url=https://wayland.app/protocols/xdg-toplevel-icon-v1#xdg_toplevel_icon_v1]xdg_toplevel_icon_v1[/url] protocol, which not all compositors do. See [url=https://wayland.app/protocols/xdg-toplevel-icon-v1#compositor-support]xdg_toplevel_icon_v1#compositor-support[/url] for more information on individual compositor support. |
|
Thanks! |
The documentation got out of sync with what the Wayland server actually returns since #107096, so it should say
Although, maybe it should be indicated that Wayland support is still spotty, and in the original PR it mentions only KWin supports it.
Closes #113874