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

List:       kde-commits
Subject:    kdebase/kwin
From:       Thomas Lübking <thomas.luebking () web ! de>
Date:       2005-02-20 23:06:11
Message-ID: 20050220230611.87C201BB03 () office ! kde ! org
[Download RAW message or body]

CVS commit by luebking: 



BUGS:99836
better opacity handling of modal windows and their transientFor()s


  M +6 -1      activation.cpp   2.49


--- kdebase/kwin/activation.cpp  #2.48:2.49
@@ -222,5 +222,5 @@ void Workspace::setActiveClient( Client*
     if( active_client != NULL )
         { // note that this may call setActiveClient( NULL ), therefore the \
                recursion counter
-        active_client->setActive( false, !c || !c->isModal() );
+            active_client->setActive( false, !c || !c->isModal() || c != \
active_client->transientFor() );  }
     active_client = c;
@@ -780,4 +780,9 @@ void Client::setActive( bool act, bool u
     
     if (updateOpacity_) updateOpacity();
+    if (isModal() && transientFor())
+    {
+        if (!act) transientFor()->updateOpacity();
+        else if (!transientFor()->custom_opacity) \
transientFor()->setOpacity(options->translucentActiveWindows, \
options->activeWindowOpacity); +    }
     updateShadowSize();
     


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

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