From a80e0cecfed48fbe61058015ad77653e0f48dff0 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 4 Oct 2022 11:16:49 +0100 Subject: [PATCH] fixes to window swallowing with same pid --- src/events/Windows.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index e95b3c3b..9b58d0f5 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -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; }