Scene::buildQuads can operate on AbstractClient for decoration handling

This commit is contained in:
Martin Gräßlin 2015-12-03 13:50:38 +01:00
parent f112b0b052
commit a82daabfe9

View file

@ -822,7 +822,7 @@ WindowQuadList Scene::Window::buildQuads(bool force) const
if (toplevel->clientPos() == QPoint(0, 0) && toplevel->clientSize() == toplevel->decorationRect().size())
ret = makeQuads(WindowQuadContents, shape()); // has no decoration
else {
Client *client = dynamic_cast<Client*>(toplevel);
AbstractClient *client = dynamic_cast<AbstractClient*>(toplevel);
QRegion contents = clientShape();
QRegion center = toplevel->transparentRect();
QRegion decoration = (client && true ?