From b37d88a29f8aed2caa29d1a4b2fad92c8bc168b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 16 Feb 2015 23:38:56 +0100 Subject: [PATCH] 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 --- client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 12fbd5083c..ef31481d5e 100644 --- a/client.cpp +++ b/client.cpp @@ -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())