GtkTrayIcon has no background on X11
Since 01d1bc3c, GtkTrayIcon doesn't get a ParentRelative
background anymore, causing the status icons to redraw without clearing first. This can lead to unrecognizable icons depending on the icon theme being used, in addition to being a visual annoyance.
The following hack seems to alleviate the issue for the most part, but it's not a good fix by any means, and breaks sometimes.
--- gtk/deprecated/gtktrayicon-x11.c.orig
+++ gtk/deprecated/gtktrayicon-x11.c
@@ -967,6 +967,8 @@
{
/* Set a parent-relative background pixmap */
gdk_window_set_background_pattern (window, NULL);
+ XSetWindowBackgroundPixmap (GDK_WINDOW_XDISPLAY (window),
+ GDK_WINDOW_XID (window), ParentRelative);
}
G_GNUC_END_IGNORE_DEPRECATIONS
Related threads:
https://github.com/TomaszGasior/gtk3-mushrooms/issues/12
https://github.com/i3/i3/issues/3335