From 555b5c10b872e262834558090fa0c921280304c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 12 Mar 2003 14:43:06 +0000 Subject: [PATCH] #55797 svn path=/trunk/kdebase/kwin/; revision=213364 --- client.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index a0597496ab..393e1d5349 100644 --- a/client.cpp +++ b/client.cpp @@ -1641,8 +1641,14 @@ bool Client::isMaximizable() const */ bool Client::isMinimizable() const { - return ( !isTransient() || !workspace()->findClient( transientFor() ) ) - && wantsTabFocus() && may_minimize; + if( isTransient()) + { + Client* trans = workspace()->findClient( transientFor()); + // TODO should it be allowed to have WM_TRANSIENT_FOR pointing to itself? + if( trans != NULL && trans != this ) + return false; + } + return wantsTabFocus() && may_minimize; } /*