only disallow shading when the function is not enabled, dont disallow unshading

This commit is contained in:
Dana Jansens 2003-03-31 20:24:56 +00:00
parent 251983186d
commit abbb454a29

View file

@ -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 */