chore: PortalInputCapture, conform to naming conventions
This commit is contained in:
committed by
Chris Rizzitello
parent
f95230549a
commit
2e193c6a78
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user