Make Client::setClientShown() a no-op if it's not required. (Maybe fixes
focus stealing prevention for ungrouped windows?) svn path=/trunk/KDE/kdebase/workspace/; revision=1062368
This commit is contained in:
parent
7578016b72
commit
89e8c3f186
1 changed files with 2 additions and 2 deletions
|
@ -1681,7 +1681,7 @@ void Client::setClientShown( bool shown )
|
|||
{
|
||||
if( deleting )
|
||||
return; // Don't change shown status if this client is being deleted
|
||||
if( !shown )
|
||||
if( !shown && !hidden )
|
||||
{
|
||||
unmap( Allowed );
|
||||
hidden = true;
|
||||
|
@ -1692,7 +1692,7 @@ void Client::setClientShown( bool shown )
|
|||
workspace()->updateFocusChains( this, Workspace::FocusChainMakeLast );
|
||||
addWorkspaceRepaint( visibleRect() );
|
||||
}
|
||||
else
|
||||
else if( hidden )
|
||||
{
|
||||
map( Allowed );
|
||||
hidden = false;
|
||||
|
|
Loading…
Reference in a new issue