swaybar: support StatusNotifierItem ToolTip #5776
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is some work I started while investigating tool-tip support for d-bus menu in #5161.
The updates to the d-bus message parsing logic are the most interesting thing here. I've not tested since rebasing but the branch builds and runs but I know it does not fully function because the paint logic is naive. Someone more familiar with the Wayland spec or wlroots should be able to nudge this in the right direction; I think it requires an additional surface like the tray uses for popups.
As well, this isn't the kind of support I was after; not many applications use SNI's ToolTip, and instead I just want to update #5161 to paint the application names and/or (icon) descriptions in bordered boxes when hovering on the icons.