mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-09 19:46:28 +00:00
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user