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
This commit is contained in:
Luboš Luňák 2003-11-13 17:19:49 +00:00
parent e636ef9f6b
commit 33e9753f6b

View file

@ -211,7 +211,8 @@ bool Client::belongToSameApplication( const Client* c1, const Client* c2, bool a
; // different apps ; // different apps
else if( !sameAppWindowRoleMatch( c1, c2, active_hack )) else if( !sameAppWindowRoleMatch( c1, c2, active_hack ))
; // "different" apps ; // "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 same_app = true; // looks like it's the same app
return same_app; return same_app;
} }