core: use new typed signals from hu (#10853)
This commit is contained in:
parent
2f34ef141b
commit
78e9eddfb6
85 changed files with 667 additions and 865 deletions
|
|
@ -6,7 +6,7 @@ CIdleInhibitor::CIdleInhibitor(SP<CIdleInhibitorResource> resource_, SP<CWLSurfa
|
|||
}
|
||||
|
||||
CIdleInhibitorResource::CIdleInhibitorResource(SP<CZwpIdleInhibitorV1> resource_, SP<CWLSurfaceResource> surface_) : m_resource(resource_), m_surface(surface_) {
|
||||
m_listeners.destroySurface = m_surface->m_events.destroy.registerListener([this](std::any d) {
|
||||
m_listeners.destroySurface = m_surface->m_events.destroy.listen([this] {
|
||||
m_surface.reset();
|
||||
m_listeners.destroySurface.reset();
|
||||
m_destroySent = true;
|
||||
|
|
@ -49,4 +49,4 @@ void CIdleInhibitProtocol::onCreateInhibitor(CZwpIdleInhibitManagerV1* pMgr, uin
|
|||
|
||||
RESOURCE->m_inhibitor = makeShared<CIdleInhibitor>(RESOURCE, surface);
|
||||
m_events.newIdleInhibitor.emit(RESOURCE->m_inhibitor);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue