diff --git a/src/lib/platform/EiScreen.cpp b/src/lib/platform/EiScreen.cpp index cbc575011..ab505db09 100644 --- a/src/lib/platform/EiScreen.cpp +++ b/src/lib/platform/EiScreen.cpp @@ -680,7 +680,7 @@ void EiScreen::onMotionEvent(ei_event *event) if (m_isOnScreen) { LOG_DEBUG("event: motion on primary x=%i y=%i)", m_cursorX, m_cursorY); sendEvent(EventTypes::PrimaryScreenMotionOnPrimary, MotionInfo::alloc(m_cursorX, m_cursorY)); - if (m_portalInputCapture->is_active()) { + if (m_portalInputCapture->isActive()) { m_portalInputCapture->release(); } } else { @@ -776,7 +776,7 @@ void EiScreen::handleSystemEvent(const Event &sysevent) if (m_isPrimary) { LOG_DEBUG("re-allocating portal input capture connection and releasing active captures"); if (m_portalInputCapture) { - if (m_portalInputCapture->is_active()) { + if (m_portalInputCapture->isActive()) { m_portalInputCapture->release(); } delete m_portalInputCapture; diff --git a/src/lib/platform/PortalInputCapture.h b/src/lib/platform/PortalInputCapture.h index cff889007..ecf6f66da 100644 --- a/src/lib/platform/PortalInputCapture.h +++ b/src/lib/platform/PortalInputCapture.h @@ -27,7 +27,7 @@ public: void disable(); void release(); void release(double x, double y); - bool is_active() const + bool isActive() const { return m_isActive; }