summaryrefslogtreecommitdiff
path: root/include/input/InputWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/input/InputWindow.h')
-rw-r--r--include/input/InputWindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input/InputWindow.h b/include/input/InputWindow.h
index 36097d6d65..121be6d963 100644
--- a/include/input/InputWindow.h
+++ b/include/input/InputWindow.h
@@ -168,6 +168,10 @@ struct InputWindowInfo : public Parcelable {
// Transform applied to individual windows.
ui::Transform transform;
+ // Display size in its natural rotation. Used to rotate raw coordinates for compatibility.
+ int32_t displayWidth = AMOTION_EVENT_INVALID_DISPLAY_SIZE;
+ int32_t displayHeight = AMOTION_EVENT_INVALID_DISPLAY_SIZE;
+
/*
* This is filled in by the WM relative to the frame and then translated
* to absolute coordinates by SurfaceFlinger once the frame is computed.