polybar: Tray icon transparency problem

Hello everybody,

i have a problem with the polybar tray. The dropbox icon appears with transparent background und fragments of the time text. I have no clue what this causing this issue. Can anybody help?

screen

polybar 3.0.5-git

Features: +alsa +curl +i3 -mpd +network

X extensions: +randr (+monitors) -render -damage -sync -composite +xkb +xrm

Build type: RelWithDebInfo
Compiler: /usr/bin/clang++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

Arch Linux Kernel 4.13.12-1-ARCH i3-gaps + compton -f -b Intel Integrated Graphics

Best regards

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 13
  • Comments: 24 (11 by maintainers)

Most upvoted comments

I’m not sure if this is the same issue but I frequently see tray icons rendered with their transparent regions as black instead of transparent.

See for example the hangouts icon: image

But also happens with the gtk-redshift icon (left most).

This is on git master commit a7ad68d.

[ebuild   R   *] x11-misc/polybar-9999::gentoo  USE="alsa curl i3wm ipc mpd network pulseaudio" PYTHON_TARGETS="python2_7" 0 KiB

Not a solution but a bit of a hack. I am using dropbox and am facing the same problem, but if you launch compton after dropbox has started, i.e. the dropbox icon is up and running on polybar, then the issue does not appear. I use the following script on startup (I’m using i3) which launches everything nicely

killall -q polybar compton

while pgrep -x polybar >/dev/null; do
	sleep 1;
done

polybar --config=/home/fat-fighter/.config/polybar/config bot &

dropbox stop; dropbox start

sleep 5

while pgrep -x compton >/dev/null; do
	sleep 1;
done
compton --config ~/.config/compton/compton.conf &

I am not sure if a permanent solution exists at this time.

I can confirm this bug with the dark tray icon of KeepassXC

polybar --version
polybar 3.3.0-99-g0740382

Features: +alsa +curl +i3 +mpd +network(wireless-tools) +pulseaudio +xkeyboard
i3 --version
i3 version 4.16.1-186-g78372ed2 (2019-06-22, branch "gaps-next") © 2009 Michael Stapelberg and contributors
uname -a
Linux 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic
cat .config/compton/config 
backend = "glx";
shadow = false;

fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;

vsync = "opengl-swc";
detect-client-opacity = true;
inactive-opacity = 0.95;
opacity-rule = ["95:class_g = 'Gnome-terminal' && window_type = 'normal'",
                "95:class_g = 'Code'"];

Screenshot from 2019-06-23 19-37-24

For the moment, I don’t have any issues and I hope it stays that way; still a great tip!

image

Does this also happen, if compton (or any other compositioner) is not running?