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
This commit is contained in:
Thomas Lübking 2015-02-16 23:38:56 +01:00
parent 99f49fa53b
commit bd28862154

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())