summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-10-04 11:16:49 +0100
committervaxerski <vaxry@vaxry.net>2022-10-04 11:16:49 +0100
commita80e0cecfed48fbe61058015ad77653e0f48dff0 (patch)
tree62adad1480756898b75c8ed469415bc95f5b7856 /src/events/Windows.cpp
parent3e3f6aef5efa5d3b20c9cb3db8df40127b9222d1 (diff)
fixes to window swallowing with same pid
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 1 insertions, 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;
}