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
This commit is contained in:
parent
36744df4c1
commit
c9658fa34a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue