There are shadows under the systray icons (with systray patch) #134
Replies: 2 comments
-
For some reason the shadow just re-appears sometimes and I don't know why, like for example I left to go get something and I took about 2 minutes then came back, opened discord and the shadow was under the systray. My dotfiles are in the "newdotfiles" repo on my github incase maybe its something wrong with my picom config? I also have my dwm on my profile. EDIT: it seems as if it works first time but when i restart discord the shadow comes back. |
Beta Was this translation helpful? Give feedback.
-
The first method is working for me. Add the code snippet in the |
Beta Was this translation helpful? Give feedback.
-
Most systray patches manage systray icons in a window separate from the bar in dwm, and just allocates free space within the bar or next to it for the systray window.
Shadows are added by the compositor, but the compositor has no way to identify this systray window hence there is no way to exclude shadows being drawn for that specific window.
To fix this you can try one of the following methods:
1) add class hints that you can use in the compositor configuration when it comes to excluding shadows. In the
clientmessage
function when creating the systray window add the following code [ref]:It should be noted that shadows on systray icons, at least in some versions of picom, is thought to be one cause of dwm (or X) unexpectedly crashing.
Once the class hint is in place add this to the
shadow-exclude
setting in your picom.conf [ref].shadow-exclude = [ ... "class_g = 'dwmsystray'", ... ];
2) alternatively add this to the
shadow-exclude
setting in your picom.conf:shadow-exclude = [ ... "_NET_WM_WINDOW_TYPE@:32a *= '_NET_WM_WINDOW_TYPE_DOCK'", ... ];
Beta Was this translation helpful? Give feedback.
All reactions