fixes to window swallowing with same pid
This commit is contained in:
parent
3e3f6aef5e
commit
a80e0cecfe
1 changed files with 1 additions and 2 deletions
|
|
@ -400,14 +400,13 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
|
|
||||||
if (w->getPID() == ppid) {
|
if (w->getPID() == ppid) {
|
||||||
found.push_back(w.get());
|
found.push_back(w.get());
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (found.size() > 1) {
|
if (found.size() > 1) {
|
||||||
for (auto& w : found) {
|
for (auto& w : found) {
|
||||||
// try get the focus
|
// try get the focus
|
||||||
if (w == g_pCompositor->m_pLastWindow) {
|
if (w == PFOCUSEDWINDOWPREV) {
|
||||||
finalFound = w;
|
finalFound = w;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue