Enable input window rotation flag
Bug: 179274888
Test: no-changes, existing tests pass
Change-Id: I11818a5c1be86c48dd8d6c15bdf88580364594e0
diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp
index 35209f7..a9e891e 100644
--- a/libs/input/Input.cpp
+++ b/libs/input/Input.cpp
@@ -47,7 +47,7 @@
// coordinates and SurfaceFlinger includes the display rotation in the input window transforms.
bool isPerWindowInputRotationEnabled() {
static const bool PER_WINDOW_INPUT_ROTATION =
- base::GetBoolProperty("persist.debug.per_window_input_rotation", false);
+ base::GetBoolProperty("persist.debug.per_window_input_rotation", true);
return PER_WINDOW_INPUT_ROTATION;
}
diff --git a/services/inputflinger/reader/mapper/TouchCursorInputMapperCommon.h b/services/inputflinger/reader/mapper/TouchCursorInputMapperCommon.h
index 7347b2c..6188976 100644
--- a/services/inputflinger/reader/mapper/TouchCursorInputMapperCommon.h
+++ b/services/inputflinger/reader/mapper/TouchCursorInputMapperCommon.h
@@ -33,7 +33,7 @@
// projection are part of the input window's transform. This means InputReader should work in the
// un-rotated coordinate space.
static bool isPerWindowInputRotationEnabled() {
- return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false);
+ return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(true);
}
static int32_t getInverseRotation(int32_t orientation) {
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 0192f6c..5137a7e 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -3060,7 +3060,7 @@
bool enablePerWindowInputRotation() {
static bool value =
- android::base::GetBoolProperty("persist.debug.per_window_input_rotation", false);
+ android::base::GetBoolProperty("persist.debug.per_window_input_rotation", true);
return value;
}