diff options
| author | 2011-05-13 12:51:12 -0700 | |
|---|---|---|
| committer | 2011-05-13 12:51:12 -0700 | |
| commit | 4fb76253f255f0adb8a64835af37bb9176ee4016 (patch) | |
| tree | 2585ba2501180f9b02a0ab6bc45a4df668ae4bbc /services/input/InputWindow.cpp | |
| parent | 0ed2e845db3f6bc7bc12a08ada18363942c2fb3d (diff) | |
Fix bounds check.
Bug: 4413945
Also remove dead code from header file.
Change-Id: I4e9fc9d7f8612fedb436e62649d308bd737ed138
Diffstat (limited to 'services/input/InputWindow.cpp')
| -rw-r--r-- | services/input/InputWindow.cpp | 3 | 
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 {  |