Port Client::decorationHasAlpha

This commit is contained in:
Martin Gräßlin 2014-07-22 14:04:48 +02:00
parent 0030eb7f84
commit 30a84808f9

View file

@ -2406,18 +2406,10 @@ NET::WindowType Client::windowType(bool direct, int supportedTypes) const
bool Client::decorationHasAlpha() const bool Client::decorationHasAlpha() const
{ {
#if 0 if (!m_decoration || m_decoration->isOpaque()) {
if (!decoration || !decorationPlugin()->hasAlpha()) {
// either no decoration or decoration has alpha disabled // either no decoration or decoration has alpha disabled
return false; return false;
} }
if (decorationPlugin()->supportsAnnounceAlpha()) {
return decoration->isAlphaEnabled();
} else {
// decoration has alpha enabled and does not support alpha announcement
return true;
}
#endif
return true; return true;
} }