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

List:       kde-commits
Subject:    [kwin/graesslin/kdecoration2] /: Port Client::decorationHasAlpha
From:       Martin_Gräßlin <mgraesslin () kde ! org>
Date:       2014-07-25 12:08:03
Message-ID: E1XAeI7-0001Zu-5p () scm ! kde ! org
[Download RAW message or body]

Git commit 30a84808f9924716b55d27c880338c0cc89a79bc by Martin Gr=C3=A4=C3=
=9Flin.
Committed on 22/07/2014 at 12:04.
Pushed by graesslin into branch 'graesslin/kdecoration2'.

Port Client::decorationHasAlpha

M  +1    -9    client.cpp

http://commits.kde.org/kwin/30a84808f9924716b55d27c880338c0cc89a79bc

diff --git a/client.cpp b/client.cpp
index 63a0200..058551f 100644
--- a/client.cpp
+++ b/client.cpp
@@ -2406,18 +2406,10 @@ NET::WindowType Client::windowType(bool direct, int=
 supportedTypes) const
 =

 bool Client::decorationHasAlpha() const
 {
-#if 0
-    if (!decoration || !decorationPlugin()->hasAlpha()) {
+    if (!m_decoration || m_decoration->isOpaque()) {
         // either no decoration or decoration has alpha disabled
         return false;
     }
-    if (decorationPlugin()->supportsAnnounceAlpha()) {
-        return decoration->isAlphaEnabled();
-    } else {
-        // decoration has alpha enabled and does not support alpha announc=
ement
-        return true;
-    }
-#endif
     return true;
 }
 =


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

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