]> Dogcows Code - chaz/openbox/commitdiff
dont iconify if you can't
authorDana Jansens <danakj@orodu.net>
Tue, 8 May 2007 22:36:26 +0000 (22:36 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 8 May 2007 22:36:26 +0000 (22:36 +0000)
openbox/client.c

index 21a0accf84db861698bb46476a609ce3bc2881a9..e2adf29fffa5ebcf8f3202975cb517b2e0ec49f5 100644 (file)
@@ -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)
This page took 0.030659 seconds and 4 git commands to generate.