If two windows are the same, they belong to the same application.
Second part for #68553. svn path=/trunk/kdebase/kwin/; revision=268142
This commit is contained in:
parent
290d7207e6
commit
0fb3d41e26
1 changed files with 3 additions and 1 deletions
|
@ -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 Client::belongToSameApplication( const Client* c1, const Client* c2, bool active_hack )
|
||||||
{
|
{
|
||||||
bool same_app = false;
|
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
|
same_app = true; // c1 has c2 as mainwindow
|
||||||
else if( c2->isTransient() && c1->hasTransient( c2, true ))
|
else if( c2->isTransient() && c1->hasTransient( c2, true ))
|
||||||
same_app = true; // c2 has c1 as mainwindow
|
same_app = true; // c2 has c1 as mainwindow
|
||||||
|
|
Loading…
Reference in a new issue