diff options
Diffstat (limited to 'src/protocols/InputMethodV2.cpp')
| -rw-r--r-- | src/protocols/InputMethodV2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/InputMethodV2.cpp b/src/protocols/InputMethodV2.cpp index 63f9f33f..7826a962 100644 --- a/src/protocols/InputMethodV2.cpp +++ b/src/protocols/InputMethodV2.cpp @@ -89,7 +89,7 @@ CInputMethodPopupV2::CInputMethodPopupV2(SP<CZwpInputPopupSurfaceV2> resource_, m_surface = surface; - m_listeners.destroySurface = surface->m_events.destroy.registerListener([this](std::any d) { + m_listeners.destroySurface = surface->m_events.destroy.listen([this] { if (m_mapped) m_events.unmap.emit(); @@ -102,7 +102,7 @@ CInputMethodPopupV2::CInputMethodPopupV2(SP<CZwpInputPopupSurfaceV2> resource_, m_surface.reset(); }); - m_listeners.commitSurface = surface->m_events.commit.registerListener([this](std::any d) { + m_listeners.commitSurface = surface->m_events.commit.listen([this] { if (m_surface->m_current.texture && !m_mapped) { m_mapped = true; m_surface->map(); |
