summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-31 20:24:56 +0000
committerDana Jansens <danakj@orodu.net>2003-03-31 20:24:56 +0000
commitabbb454a29984a1d73f8bc43477768f783405bc3 (patch)
treefc27869a0d78125e0b22feea889dfb88fd1788b5 /openbox
parent251983186d919ea6e0c16418cf7939c02ef59afa (diff)
only disallow shading when the function is not enabled, dont disallow unshading
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c2
1 files changed, 1 insertions, 1 deletions
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 */