diff --git a/src/x11client.cpp b/src/x11client.cpp index 0f78da2ab3..557ccfb4c2 100644 --- a/src/x11client.cpp +++ b/src/x11client.cpp @@ -1135,8 +1135,7 @@ void X11Client::createDecoration(const QRect& oldgeom) } setDecoration(decoration); - move(calculateGravitation(false)); - resize(implicitSize()); + moveResize(QRect(calculateGravitation(false), implicitSize())); maybeCreateX11DecorationRenderer(); Q_EMIT geometryShapeChanged(this, oldgeom); } @@ -1148,8 +1147,7 @@ void X11Client::destroyDecoration() QPoint grav = calculateGravitation(true); setDecoration(nullptr); maybeDestroyX11DecorationRenderer(); - resize(implicitSize()); - move(grav); + moveResize(QRect(grav, implicitSize())); if (!isZombie()) { Q_EMIT geometryShapeChanged(this, oldgeom); }