]> Dogcows Code - chaz/openbox/commitdiff
only disallow shading when the function is not enabled, dont disallow unshading
authorDana Jansens <danakj@orodu.net>
Mon, 31 Mar 2003 20:24:56 +0000 (20:24 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 31 Mar 2003 20:24:56 +0000 (20:24 +0000)
openbox/client.c

index 5881cac651341efeedaa93084d230e20662852a3..8f219193ef6fe008fc76683f6029f7b78b78b046 100644 (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 */
This page took 0.026785 seconds and 4 git commands to generate.