summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-08 22:36:26 +0000
committerDana Jansens <danakj@orodu.net>2007-05-08 22:36:26 +0000
commit370b5ba27d77c3eecb984f2efa64a4263d454112 (patch)
tree9c6d1c98215f357ddf682a07f718679e3bb02adf /openbox
parentb82ccb2c78521dac7cc3366727dfe71c1387bc70 (diff)
dont iconify if you can't
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 21a0accf..e2adf29f 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2857,9 +2857,11 @@ static void client_iconify_recursive(ObClient *self,
void client_iconify(ObClient *self, gboolean iconic, gboolean curdesk)
{
- /* move up the transient chain as far as possible first */
- self = client_search_top_normal_parent(self);
- client_iconify_recursive(self, iconic, curdesk);
+ if (self->functions & OB_CLIENT_FUNC_ICONIFY) {
+ /* move up the transient chain as far as possible first */
+ self = client_search_top_normal_parent(self);
+ client_iconify_recursive(self, iconic, curdesk);
+ }
}
void client_maximize(ObClient *self, gboolean max, gint dir)