dont iconify if you can't

This commit is contained in:
Dana Jansens 2007-05-08 22:36:26 +00:00
parent b82ccb2c78
commit 370b5ba27d

View file

@ -2857,9 +2857,11 @@ static void client_iconify_recursive(ObClient *self,
void client_iconify(ObClient *self, gboolean iconic, gboolean curdesk) void client_iconify(ObClient *self, gboolean iconic, gboolean curdesk)
{ {
/* move up the transient chain as far as possible first */ if (self->functions & OB_CLIENT_FUNC_ICONIFY) {
self = client_search_top_normal_parent(self); /* move up the transient chain as far as possible first */
client_iconify_recursive(self, iconic, curdesk); self = client_search_top_normal_parent(self);
client_iconify_recursive(self, iconic, curdesk);
}
} }
void client_maximize(ObClient *self, gboolean max, gint dir) void client_maximize(ObClient *self, gboolean max, gint dir)