Port Client::decorationHasAlpha
This commit is contained in:
parent
0030eb7f84
commit
30a84808f9
1 changed files with 1 additions and 9 deletions
10
client.cpp
10
client.cpp
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue