diff options
Diffstat (limited to 'src/protocols/IdleInhibit.cpp')
| -rw-r--r-- | src/protocols/IdleInhibit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/IdleInhibit.cpp b/src/protocols/IdleInhibit.cpp index f8031d22..e7e0e676 100644 --- a/src/protocols/IdleInhibit.cpp +++ b/src/protocols/IdleInhibit.cpp @@ -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); -}
\ No newline at end of file +} |
