diff options
| author | outfoxxed <outfoxxed@outfoxxed.me> | 2025-07-08 09:56:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 18:56:40 +0200 |
| commit | 78e9eddfb6bfbc6b103fc60c9831b23ef252886b (patch) | |
| tree | 4daf06580d89dec717a282c4ec8729285241c8e8 /src/protocols/IdleInhibit.cpp | |
| parent | 2f34ef141b0728857d2a6f777c608dfe4c207733 (diff) | |
core: use new typed signals from hu (#10853)
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 +} |
