From ae5fb4c15faad3b0881239339ff2d51e98ea8a73 Mon Sep 17 00:00:00 2001 From: "michal.szwaj" Date: Tue, 13 Feb 2018 16:01:28 +0100 Subject: [PATCH] Absorb all input events to avoid unexpected actions from hidden windows --- src/autoapp/Projection/InputDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autoapp/Projection/InputDevice.cpp b/src/autoapp/Projection/InputDevice.cpp index 52c2f1a..81110e2 100644 --- a/src/autoapp/Projection/InputDevice.cpp +++ b/src/autoapp/Projection/InputDevice.cpp @@ -162,7 +162,7 @@ bool InputDevice::handleKeyEvent(QEvent* event, QKeyEvent* key) break; default: - return false; + return true; } const auto& buttonCodes = this->getSupportedButtonCodes(); @@ -181,7 +181,7 @@ bool InputDevice::handleTouchEvent(QEvent* event) { if(!configuration_->getTouchscreenEnabled()) { - return false; + return true; } aasdk::proto::enums::TouchAction::Enum type; @@ -198,7 +198,7 @@ bool InputDevice::handleTouchEvent(QEvent* event) type = aasdk::proto::enums::TouchAction::DRAG; break; default: - return false; + return true; }; QMouseEvent* mouse = static_cast(event);