[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdebase/kwin
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2003-03-12 14:43:59
[Download RAW message or body]

CVS commit by lunakl: 

Backport #55797.


  M +8 -2      client.cpp   1.332.2.6


--- kdebase/kwin/client.cpp  #1.332.2.5:1.332.2.6
@@ -1554,6 +1554,12 @@ 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;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic