From 78e9eddfb6bfbc6b103fc60c9831b23ef252886b Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Tue, 8 Jul 2025 09:56:40 -0700 Subject: core: use new typed signals from hu (#10853) --- src/protocols/IdleInhibit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocols/IdleInhibit.cpp') 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 resource_, SP resource_, SP 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(RESOURCE, surface); m_events.newIdleInhibitor.emit(RESOURCE->m_inhibitor); -} \ No newline at end of file +} -- cgit v1.2.3