yshui / picom

A lightweight compositor for X11 with animation support
https://picom.app/
Other
4.15k stars 589 forks source link

Non-functional _NET_WM_WINDOW_TYPE_DESKTOP when configuring shadows via the rules section #1331

Closed raven2cz closed 3 weeks ago

raven2cz commented 1 month ago

According to the documentation:

-c, --shadow
    Enables client-side shadows on windows. Note that desktop windows (windows with _NET_WM_WINDOW_TYPE_DESKTOP) never receive shadows, unless explicitly requested using the wintypes option.

This applies to the standard older configuration. However, if you use a new configuration with shadow, defined via rules, then _NET_WM_WINDOW_TYPE_DESKTOP no longer applies and everything gets shadows, which is incorrect.

I have to add rule:

 {
   match = "_NET_WM_WINDOW_TYPE = '_NET_WM_WINDOW_TYPE_DESKTOP'";
   shadow = false;
 },
Monsterovich commented 1 month ago

How about match = "window_type = 'desktop'"?