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:
parent
ef8092597b
commit
49c4ddcb5e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue