Don't recreate the decoration on release window

When a window is going to be closed there is no
need to recreate the window decoration from
finishCompositing.

REVIEW: 104759
This commit is contained in:
Martin Gräßlin 2012-04-13 17:46:17 +02:00
parent e3f2dd7612
commit de5003299b

View file

@ -892,7 +892,10 @@ void Client::finishCompositing()
{
Toplevel::finishCompositing();
updateVisibility();
updateDecoration(true, true);
if (!deleting) {
// only recreate the decoration if we are not shutting down completely
updateDecoration(true, true);
}
// for safety in case KWin is just resizing the window
s_haveResizeEffect = false;
}