Revert accidential change in Scene::buildQuads

Region of decoration was accidentially changed with commit
2ed2c50b713843b184a7b973b1dfc106679df7ff
icc-effect-5.14.5
Martin Gräßlin 2012-05-03 20:58:43 +02:00
parent fb361b3d35
commit d46eeed0bc
1 changed files with 2 additions and 1 deletions

View File

@ -583,7 +583,8 @@ WindowQuadList Scene::Window::buildQuads(bool force) const
Client *client = dynamic_cast<Client*>(toplevel);
QRegion contents = clientShape();
QRegion center = toplevel->transparentRect();
QRegion decoration = shape() - center;
QRegion decoration = (client && Workspace::self()->decorationHasAlpha() ?
QRegion(client->decorationRect()) : shape()) - center;
ret = makeQuads(WindowQuadContents, contents);
if (!client || !(center.isEmpty() || client->isShade()))
ret += makeQuads(WindowQuadDecoration, decoration);