From: Dana Jansens Date: Mon, 31 Mar 2003 20:24:56 +0000 (+0000) Subject: only disallow shading when the function is not enabled, dont disallow unshading X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=abbb454a29984a1d73f8bc43477768f783405bc3;p=chaz%2Fopenbox only disallow shading when the function is not enabled, dont disallow unshading --- diff --git a/openbox/client.c b/openbox/client.c index 5881cac6..8f219193 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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 */