Hi, On 02.12.18 02:30, Roland Hieber wrote: > since a recent apt-get upgrade, followed by a restart of X, the systray > icons in my awesome with default configuration look strange and it seems > like the transparent parts are no longer redrawn with the background > color, but previously drawn items stay there, and only the opaque parts > of the icons are drawn over them. I don't know if this is awesome's > fault, it could also be a problem in an underlying library, so feel free > to assign to some other package.
GTK+ broke their systray icons (perhaps only in non-composited environments; I'm not entirely sure). As far as I know, version 3.24 is affected. This bug was introduced in https://gitlab.gnome.org/GNOME/gtk/commit/01d1bc3c75fd0eff5665f5b9c690c5e1e6c65f13. Links to a couple of upstream bugs (and patches): https://github.com/awesomeWM/awesome/issues/1720 (Ignore the people talking about Qt for this; Qt also broke their icons ages ago) https://github.com/awesomeWM/awesome/issues/2449 (This talks about GTK 3.24 being affected) https://github.com/i3/i3/issues/3335 https://github.com/TomaszGasior/gtk3-mushrooms/issues/12 https://gitlab.gnome.org/GNOME/gtk/issues/1280 https://gitlab.gnome.org/GNOME/gtk/merge_requests/391/diffs (Sadly this merge request is inactive for about a month now...) > I have attached a screenshot with systray icons from nm-applet, nm-applet is definitely GTK+. > variety, I do not know this, but it depends on gir1.2-gtk-3.0, so likely also GTK+. > pasystray, Also do not know, but depends on libgtk-3-0. > hexchat, Uhm... definitely GTK+, but it depends on libgtk2.0-0, so this should not be affected by the breakage in GTK+3...? > and xfce4-power-manager. Definitely GTK+ and depends on libgtk-3-0. > You can see that under the > nm-applet WLAN indicator, there are leftovers of a previous nm-applet > icon when it hadn't had any connection. Then, under the variety icon, > some leftover text from awesome's keyboard indicator widget (which got > pushed to the left when the systray was filled up with icons). The > Pulseaudio systray icon is showing some weird superimposed state of > muted and non-muted, and the XFCE4 Power Manager is showing one and a > half batteries, the result of a "running on battery" icon drawn over a > previous "charging battery" icon. In X11, a background of "ParentRelative" means that the window inherits the background of its parent window. So, systray implementations can set a background on the systray window and the individual systray icons then inherit this background. GTK+ switched all its windows to a background of "None". This means that no background at all is drawn and whatever was visible here before stays visible when a background should be drawn. This is the behaviour that GTK+ is getting. (Qt has (had?) a different problem; they simply grabbed a screenshot and used that as the background. So, if e.g. the screensaver was active at the time the systray icon became visible... well, you now get your screensaver as background. Sometimes it would also screenshot old systray icons etc.) Cheers, Uli -- Sent from my Game Boy.