summaryrefslogtreecommitdiff
path: root/services/input/InputWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/input/InputWindow.cpp')
-rw-r--r--services/input/InputWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/input/InputWindow.cpp b/services/input/InputWindow.cpp
index ccea9e45535e..b552f6d5b43d 100644
--- a/services/input/InputWindow.cpp
+++ b/services/input/InputWindow.cpp
@@ -29,7 +29,8 @@ bool InputWindow::touchableRegionContainsPoint(int32_t x, int32_t y) const {
}
bool InputWindow::frameContainsPoint(int32_t x, int32_t y) const {
- return x <= frameRight || y <= frameBottom;
+ return x >= frameLeft && x <= frameRight
+ && y >= frameTop && y <= frameBottom;
}
bool InputWindow::isTrustedOverlay() const {