From 0fb3d41e26994e0f0adc3b03e5ddc8e3f40e4eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 19 Nov 2003 10:44:36 +0000 Subject: [PATCH] If two windows are the same, they belong to the same application. Second part for #68553. svn path=/trunk/kdebase/kwin/; revision=268142 --- group.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index d85dafcd9e..b852069a35 100644 --- a/group.cpp +++ b/group.cpp @@ -196,7 +196,9 @@ bool Client::resourceMatch( const Client* c1, const Client* c2 ) bool Client::belongToSameApplication( const Client* c1, const Client* c2, bool active_hack ) { bool same_app = false; - if( c1->isTransient() && c2->hasTransient( c1, true )) + if( c1 == c2 ) + same_app = true; + else if( c1->isTransient() && c2->hasTransient( c1, true )) same_app = true; // c1 has c2 as mainwindow else if( c2->isTransient() && c1->hasTransient( c2, true )) same_app = true; // c2 has c1 as mainwindow