polybar / polybar

A fast and easy-to-use status bar
https://polybar.github.io
MIT License
14.05k stars 703 forks source link

[Bug]: internal/tray is not rendering properly changes in tray icons #3044

Open agorgl opened 10 months ago

agorgl commented 10 months ago

Checklist

Steps to reproduce

polybar -r main

Minimal config

[bar/main]
width = 100%
module-margin-left = 2
module-margin-right = 0
modules-right = time tray

[module/tray]
type = internal/tray
format-offset = 0px
format-margin = 0px
format-padding = 0px
tray-padding = 0px
tray-spacing = 8px

Polybar log

No response

Expected behavior

When tray icons rerender, their previous icons should not show beneath

Actual behavior

Garbled tray icons on programs with tray icons that change

Window Manager and Version

bspwm

Linux Distribution

Arch

Polybar version

polybar 3.7.0

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/polybar/src=/usr/src/debug/polybar -flto=auto -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Wdeprecated-copy-dtor -Wsuggest-override
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wall -Wextra -Wpedantic -Wdeprecated-copy-dtor -Wsuggest-override  -Wall -Wextra -Wpedantic -Wdeprecated-copy-dtor -Wsuggest-override

Additional Context / Screenshots

Tray icon before some action: image

Tray icon on/after the loading action: image

patrick96 commented 10 months ago

Which application is that tray icon from? I think we've had similar problems in the past. I hoped that the new tray may have fixed it, but doesn't look like it.

Tray icon on/after the loading action:

What is this loading action?

agorgl commented 10 months ago

Its nm-applet from NetworkManager and it is the loading icon from the VPN profile activation (I think though all the icon changes in nm-applet exhibit this behavior)

patrick96 commented 10 months ago

Thanks. I'll try to play around with it and see if I can reproduce this consistently as well.