From c9658fa34a349f868f8c3c416745242f444592b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 20 Jun 2010 12:16:28 +0000 Subject: [PATCH] Forward port rev 1140341: Ensure that a decoration is created before we try to shade the client. This fixes a crash when auto-grouping is enabled and a client should be added to a shaded group. It still crashes when kwin is restarted with a shade group (same backtrace, but needs a different fix). CCBUG: 242206 svn path=/trunk/KDE/kdebase/workspace/; revision=1140342 --- manage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manage.cpp b/manage.cpp index 0bc0797593..f76bb70390 100644 --- a/manage.cpp +++ b/manage.cpp @@ -321,6 +321,8 @@ bool Client::manage( Window w, bool isMapped ) const Client* similar = workspace()->findSimilarClient( this ); if( similar && similar->clientGroup() && !similar->noBorder() ) { + geom = QRect( similar->pos() + similar->clientPos(), similar->clientSize() ); + updateDecoration( false ); similar->clientGroup()->add( this, -1, rules()->checkAutogroupInForeground( options->autogroupInForeground )); // Don't move entire group