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/core/Seat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/protocols/core/Seat.cpp') diff --git a/src/protocols/core/Seat.cpp b/src/protocols/core/Seat.cpp index c341f95a..53123abe 100644 --- a/src/protocols/core/Seat.cpp +++ b/src/protocols/core/Seat.cpp @@ -32,7 +32,7 @@ void CWLTouchResource::sendDown(SP surface, uint32_t timeMs, ASSERT(surface->client() == m_owner->client()); m_currentSurface = surface; - m_listeners.destroySurface = surface->m_events.destroy.registerListener([this, timeMs, id](std::any d) { sendUp(timeMs + 10 /* hack */, id); }); + m_listeners.destroySurface = surface->m_events.destroy.listen([this, timeMs, id] { sendUp(timeMs + 10 /* hack */, id); }); m_resource->sendDown(g_pSeatManager->nextSerial(m_owner.lock()), timeMs, surface->getResource().get(), id, wl_fixed_from_double(local.x), wl_fixed_from_double(local.y)); @@ -160,7 +160,7 @@ void CWLPointerResource::sendEnter(SP surface, const Vector2 ASSERT(surface->client() == m_owner->client()); m_currentSurface = surface; - m_listeners.destroySurface = surface->m_events.destroy.registerListener([this](std::any d) { sendLeave(); }); + m_listeners.destroySurface = surface->m_events.destroy.listen([this] { sendLeave(); }); m_resource->sendEnter(g_pSeatManager->nextSerial(m_owner.lock()), surface->getResource().get(), wl_fixed_from_double(local.x), wl_fixed_from_double(local.y)); } @@ -349,7 +349,7 @@ void CWLKeyboardResource::sendEnter(SP surface) { ASSERT(surface->client() == m_owner->client()); m_currentSurface = surface; - m_listeners.destroySurface = surface->m_events.destroy.registerListener([this](std::any d) { sendLeave(); }); + m_listeners.destroySurface = surface->m_events.destroy.listen([this] { sendLeave(); }); wl_array arr; wl_array_init(&arr); -- cgit v1.2.3