diff --git a/scene.cpp b/scene.cpp index e6738530b0..ad5ca6d929 100644 --- a/scene.cpp +++ b/scene.cpp @@ -825,9 +825,8 @@ WindowQuadList Scene::Window::buildQuads(bool force) const AbstractClient *client = dynamic_cast(toplevel); QRegion contents = clientShape(); QRegion center = toplevel->transparentRect(); - QRegion decoration = (client && true ? - QRegion(client->decorationRect()) : shape()) - center; - ret = makeQuads(WindowQuadContents, contents, client->clientContentPos()); + QRegion decoration = (client ? QRegion(client->decorationRect()) : shape()) - center; + ret = makeQuads(WindowQuadContents, contents, toplevel->clientContentPos()); QRect rects[4]; bool isShadedClient = false;