only disallow shading when the function is not enabled, dont disallow unshading
This commit is contained in:
parent
251983186d
commit
abbb454a29
1 changed files with 1 additions and 1 deletions
|
@ -1659,7 +1659,7 @@ void client_maximize(Client *self, gboolean max, int dir, gboolean savearea)
|
|||
|
||||
void client_shade(Client *self, gboolean shade)
|
||||
{
|
||||
if (!(self->functions & Func_Shade) || /* can't */
|
||||
if ((!(self->functions & Func_Shade) && shade) || /* can't shade */
|
||||
self->shaded == shade) return; /* already done */
|
||||
|
||||
/* when we're iconic, don't change the wmstate */
|
||||
|
|
Loading…
Reference in a new issue