fixes to window swallowing with same pid

This commit is contained in:
Vaxry 2022-10-04 11:16:49 +01:00
parent 3e3f6aef5e
commit a80e0cecfe

View file

@ -400,14 +400,13 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (w->getPID() == ppid) {
found.push_back(w.get());
break;
}
}
if (found.size() > 1) {
for (auto& w : found) {
// try get the focus
if (w == g_pCompositor->m_pLastWindow) {
if (w == PFOCUSEDWINDOWPREV) {
finalFound = w;
break;
}