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
[Bug]: Tray Module Rendering Issues #2933
Comments
I'm not sure if it's the same issue, but since about 2 days ago my systray started using the bar's background color instead of the Here's how it looks (the systray module should have Here are my dotfiles: https://github.com/zjeffer/dotfiles/tree/main/.config/polybar/ Output of
|
@zjeffer The tray module loads its settings from the module section (I guess I changed that, I thought it was always like this). The In any case, the tray module settings are subject to change before the next release. |
Thanks, this fixed it: zjeffer/dotfiles@ab1e7e9 |
I spent some more time with my implementation of show/hide tray in #2954 and found a "fun" little rendering bug. If the tray is "hidden" and a new tray icon shows up. Overlapping occurs and one would have to unhide/hide the tray to fix it. GIF below where I open qBittorrent and the tray icon shows up overlapping I think reproducing would simply be to set the new tray module to hidden and starting a program that adds a new tray icon. |
@anhnamtran Thanks for telling us, I can also easily reproduce this. I guess our docking logic doesn't take into account whether the tray is actually hidden. I'll convert this into a separate issue and target it for the next release. |
This is a collection issue for any tray icon rendering problems in the new tray module.
With #2609 being merged, the tray module gets an overhauled rendering that should fix many problems.
However, there are some issues that remain.
For me, I mainly notice this with the dropbox tray icon:
The icon should take on the same background as the bar (red), but instead just has a completely different color.
In practice the icon just uses arbitrary data for its background, often images rendered before (e.g. bar contents).
I have not been able to figure out why this is happening, there don't seem to be any obvious issues on our side.
I am starting to suspect that the dropbox application itself (which is responsible for rendering the icon) actually draws the background this way for some reason.
If you are using the tray module and experience similar rendering issues, please report them here.
Please also include a screenshot, the name of the application, and your polybar version (
polybar -v
).Offending applications:
Related Issues
Developer info (Click to expand)
I have also tested out how other applications deal with the dropbox icon:
No other implementation can deal with changing the icon background dynamically.
In addition, most trays struggle to get a correct background.
Stalonetray seems to have some special handling for
WM_NORMAL_HINTS
and before clearing the tray icon, it sets the visibility toVisibilityFullyObscured
and thenVisibilityUnobscured
.The text was updated successfully, but these errors were encountered: