output: send enter events on late wl_output binds

fixes #6560
This commit is contained in:
Vaxry
2024-10-16 21:59:29 +01:00
parent 0baf166d39
commit 781828a56e
3 changed files with 29 additions and 0 deletions

View File

@@ -589,3 +589,9 @@ void CWLCompositorProtocol::destroyResource(CWLSurfaceResource* resource) {
void CWLCompositorProtocol::destroyResource(CWLRegionResource* resource) {
std::erase_if(m_vRegions, [&](const auto& other) { return other.get() == resource; });
}
void CWLCompositorProtocol::forEachSurface(std::function<void(SP<CWLSurfaceResource>)> fn) {
for (auto& surf : m_vSurfaces) {
fn(surf);
}
}