CM: Adjust shadowing conditions some more

Regular clients:
- Disable if fullscreen
- Disable if *client* is shaped (<- changed with this commit)
  Now shaped border themes like winter again can have shadows like
  before the previous fix (a41b2209).

Override-redirect:
- Disable if shaped
This commit is contained in:
Kim Woelders 2022-04-03 17:05:24 +02:00
parent ef8092597b
commit 49c4ddcb5e
1 changed files with 4 additions and 2 deletions

View File

@ -168,16 +168,18 @@ EobjShadowOk(const EObj * eo)
{
if (!eo->shadow)
return 0; /* Shadow disabled by configuration */
if (eo->shaped)
return 0; /* Shadow disabled if shaped */
switch (eo->type)
{
default:
if (eo->shaped)
return 0; /* Shadow disabled if shaped */
break;
case EOBJ_TYPE_EWIN:
if (((EWin *) eo)->state.fullscreen)
return 0; /* Shadow disabled if fullscreen */
if (((EWin *) eo)->state.shaped)
return 0; /* Shadow disabled if client is shaped */
}
return 1;