From 33e9753f6b82b73eb6ae223baeb92b4cc9921928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 13 Nov 2003 17:19:49 +0000 Subject: [PATCH] If windows don't have _NET_WM_PID set, don't rely on pid1==pid2 when finding out if they're the same app. CCMAIL: 68087-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=266853 --- group.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index a1d33cc8dc..9b8acb6f99 100644 --- a/group.cpp +++ b/group.cpp @@ -211,7 +211,8 @@ bool Client::belongToSameApplication( const Client* c1, const Client* c2, bool a ; // different apps else if( !sameAppWindowRoleMatch( c1, c2, active_hack )) ; // "different" apps - else + else if( c1->pid() == 0 || c2->pid() == 0 ) + ; // old apps that don't have _NET_WM_PID, consider them different same_app = true; // looks like it's the same app return same_app; }