Skip to content

Commit 2c7f7e9

Browse files
add m_lockSurfaces to windowForSurf to make click work
1 parent 2989ffd commit 2c7f7e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/platforms/WaylandPlatform.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ SP<IWaylandWindow> CWaylandPlatform::windowForSurf(wl_proxy* proxy) {
202202
return pp;
203203
}
204204
}
205+
206+
for (const auto& w : m_lockSurfaces) {
207+
if (w->m_waylandState.surface && w->m_waylandState.surface->resource() == proxy)
208+
return w.lock();
209+
}
205210
return nullptr;
206211
}
207212

0 commit comments

Comments
 (0)