From 3a23e0775d181b568745b98342e14c5f816af584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 24 Oct 2003 09:00:40 +0000 Subject: [PATCH] Fix focus stealing prevention for XV, just in case Coolo sometimes decides to run it again. svn path=/trunk/kdebase/kwin/; revision=261527 --- group.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index 3bd0a30b06..b7cefd9f8c 100644 --- a/group.cpp +++ b/group.cpp @@ -203,7 +203,9 @@ bool Client::belongToSameApplication( const Client* c1, const Client* c2, bool a else if( c1->pid() != c2->pid() || c1->wmClientMachine() != c2->wmClientMachine()) ; // different processes - else if( c1->wmClientLeader() != c2->wmClientLeader()) + else if( c1->wmClientLeader() != c2->wmClientLeader() + && c1->wmClientLeader() != c1->window() // if WM_CLIENT_LEADER is not set, it returns window(), + && c2->wmClientLeader() != c2->window()) // don't use in this test then ; // different client leader else if( !resourceMatch( c1, c2 )) ; // different apps