From 89e8c3f186bb79e7b9767f7f330122ca32aa6a10 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Mon, 14 Dec 2009 13:26:39 +0000 Subject: [PATCH] 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 --- client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 203839ec3a..b72b580913 100644 --- a/client.cpp +++ b/client.cpp @@ -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;