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:
parent
ac3aef8dfc
commit
b37d88a29f
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue