From: Dana Jansens Date: Tue, 8 May 2007 22:36:26 +0000 (+0000) Subject: dont iconify if you can't X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=370b5ba27d77c3eecb984f2efa64a4263d454112;p=chaz%2Fopenbox dont iconify if you can't --- 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)