x11: Avoid discarding the window pixmap for no reason
If the buffer size changes after creating or destroying the decoration, the surface item will discard the pixmap. If the buffer size remains the same, we can continue using old pixmap.
This commit is contained in:
parent
2ef53e7350
commit
748004d81e
1 changed files with 0 additions and 5 deletions
|
@ -1150,9 +1150,6 @@ void X11Client::createDecoration(const QRect& oldgeom)
|
||||||
resize(adjustedSize());
|
resize(adjustedSize());
|
||||||
updateDecorationInputShape();
|
updateDecorationInputShape();
|
||||||
maybeCreateX11DecorationRenderer();
|
maybeCreateX11DecorationRenderer();
|
||||||
if (Compositor::compositing()) {
|
|
||||||
discardWindowPixmap();
|
|
||||||
}
|
|
||||||
Q_EMIT geometryShapeChanged(this, oldgeom);
|
Q_EMIT geometryShapeChanged(this, oldgeom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1165,8 +1162,6 @@ void X11Client::destroyDecoration()
|
||||||
maybeDestroyX11DecorationRenderer();
|
maybeDestroyX11DecorationRenderer();
|
||||||
resize(adjustedSize());
|
resize(adjustedSize());
|
||||||
move(grav);
|
move(grav);
|
||||||
if (Compositor::compositing())
|
|
||||||
discardWindowPixmap();
|
|
||||||
if (!isZombie()) {
|
if (!isZombie()) {
|
||||||
Q_EMIT geometryShapeChanged(this, oldgeom);
|
Q_EMIT geometryShapeChanged(this, oldgeom);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue