prevent nullptr dereferentiation
BUG: 357032 FIXED-IN: 5.6 REVIEW: 126787
This commit is contained in:
parent
c7aefc6b6b
commit
95cbd7c1b3
1 changed files with 2 additions and 3 deletions
|
@ -825,9 +825,8 @@ WindowQuadList Scene::Window::buildQuads(bool force) const
|
||||||
AbstractClient *client = dynamic_cast<AbstractClient*>(toplevel);
|
AbstractClient *client = dynamic_cast<AbstractClient*>(toplevel);
|
||||||
QRegion contents = clientShape();
|
QRegion contents = clientShape();
|
||||||
QRegion center = toplevel->transparentRect();
|
QRegion center = toplevel->transparentRect();
|
||||||
QRegion decoration = (client && true ?
|
QRegion decoration = (client ? QRegion(client->decorationRect()) : shape()) - center;
|
||||||
QRegion(client->decorationRect()) : shape()) - center;
|
ret = makeQuads(WindowQuadContents, contents, toplevel->clientContentPos());
|
||||||
ret = makeQuads(WindowQuadContents, contents, client->clientContentPos());
|
|
||||||
|
|
||||||
QRect rects[4];
|
QRect rects[4];
|
||||||
bool isShadedClient = false;
|
bool isShadedClient = false;
|
||||||
|
|
Loading…
Reference in a new issue