calc undecorated offset *before* removing deco

point of the calculation is to know how much
the window must be moved to de-compensate for
the deco but calculateGravitation() w/o a
deco (thus now w/o borderTop() etc.) is NOOP.

BUG: 344234
FIXED-IN: 5.2.2
This commit is contained in:
Thomas Lübking 2015-02-16 23:38:56 +01:00
parent ac3aef8dfc
commit b37d88a29f

View file

@ -542,9 +542,9 @@ void Client::destroyDecoration()
{
QRect oldgeom = geometry();
if (m_decoration) {
QPoint grav = calculateGravitation(true);
delete m_decoration;
m_decoration = nullptr;
QPoint grav = calculateGravitation(true);
plainResize(sizeForClientSize(clientSize()), ForceGeometrySet);
move(grav);
if (compositing())