chore: PortalInputCapture, conform to naming conventions
This commit is contained in:
parent
f95230549a
commit
2e193c6a78
2 changed files with 3 additions and 3 deletions
|
|
@ -680,7 +680,7 @@ void EiScreen::onMotionEvent(ei_event *event)
|
||||||
if (m_isOnScreen) {
|
if (m_isOnScreen) {
|
||||||
LOG_DEBUG("event: motion on primary x=%i y=%i)", m_cursorX, m_cursorY);
|
LOG_DEBUG("event: motion on primary x=%i y=%i)", m_cursorX, m_cursorY);
|
||||||
sendEvent(EventTypes::PrimaryScreenMotionOnPrimary, MotionInfo::alloc(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();
|
m_portalInputCapture->release();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -776,7 +776,7 @@ void EiScreen::handleSystemEvent(const Event &sysevent)
|
||||||
if (m_isPrimary) {
|
if (m_isPrimary) {
|
||||||
LOG_DEBUG("re-allocating portal input capture connection and releasing active captures");
|
LOG_DEBUG("re-allocating portal input capture connection and releasing active captures");
|
||||||
if (m_portalInputCapture) {
|
if (m_portalInputCapture) {
|
||||||
if (m_portalInputCapture->is_active()) {
|
if (m_portalInputCapture->isActive()) {
|
||||||
m_portalInputCapture->release();
|
m_portalInputCapture->release();
|
||||||
}
|
}
|
||||||
delete m_portalInputCapture;
|
delete m_portalInputCapture;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public:
|
||||||
void disable();
|
void disable();
|
||||||
void release();
|
void release();
|
||||||
void release(double x, double y);
|
void release(double x, double y);
|
||||||
bool is_active() const
|
bool isActive() const
|
||||||
{
|
{
|
||||||
return m_isActive;
|
return m_isActive;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue