How to disable shadow in all maximized windows?
It is desirable in the configuration file.
shadow-exclude = max_windows )))
--shadow-exclude-reg is easier to use.x, y, x2, y2 etc. For example, my screen resolution is 1440x900, and I have a taskbar on the top of the screen that maximized windows will not cover, so I could use: --shadow-exclude 'x <= 3 && x2 >= 1337 && y <= 30 && y2 >= 887'If your WM is fully EWMH-compliant, you could match _NET_WM_STATE with something like:
--shadow-exclude (_NET_WM_STATE@[0]:a = "_NET_WM_STATE@_MAXIMIZED_VERT" || _NET_WM_STATE@[1]:a = "_NET_WM_STATE@_MAXIMIZED_VERT" || _NET_WM_STATE@[2]:a = "_NET_WM_STATE@_MAXIMIZED_VERT" || _NET_WM_STATE@[3]:a = "_NET_WM_STATE@_MAXIMIZED_VERT" || _NET_WM_STATE@[4]:a = "_NET_WM_STATE@_MAXIMIZED_VERT") && (_NET_WM_STATE@[0]:a = "_NET_WM_STATE@_MAXIMIZED_HORZ" || _NET_WM_STATE@[1]:a = "_NET_WM_STATE@_MAXIMIZED_HORZ" || _NET_WM_STATE@[2]:a = "_NET_WM_STATE@_MAXIMIZED_HORZ" || _NET_WM_STATE@[3]:a = "_NET_WM_STATE@_MAXIMIZED_HORZ" || _NET_WM_STATE@[4]:a = "_NET_WM_STATE@_MAXIMIZED_HORZ")
compton.sample.conf if you have trouble finding it.Thanks for the detailed answer!
I came in handy the second option. I use xfwm. My resolution 1600x900 and i write in config-file:
shadow-exclude = "x<=3 && x2>= 1600 && y <= 30 && y2 >=853";
See gif

Sorry for my english and thanks you again.
Most helpful comment
--shadow-exclude-regis easier to use.x,y,x2,y2etc. For example, my screen resolution is 1440x900, and I have a taskbar on the top of the screen that maximized windows will not cover, so I could use:--shadow-exclude 'x <= 3 && x2 >= 1337 && y <= 30 && y2 >= 887'If your WM is fully EWMH-compliant, you could match
_NET_WM_STATEwith something like:compton.sample.confif you have trouble finding it.