summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */