Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0743a594 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Revert^2 "Enable input window rotation flag"

Reland the per-window-input-rotation flag. It was reverted because it
broke touch on foldables. The issue is now fix, so attempt to reland
this.

477c52ff

Bug: 179274888
Test: presubmit
Test: manual using foldable

Change-Id: I407112b9106cd12b3bfb602a39d4c0898cfd4c0d
parent f334812d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ namespace {
// 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;
}
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ namespace android::inputdispatcher {
// coordinates and SurfaceFlinger includes the display rotation in the input window transforms.
static bool isPerWindowInputRotationEnabled() {
    static const bool PER_WINDOW_INPUT_ROTATION =
            sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false);
            sysprop::InputFlingerProperties::per_window_input_rotation().value_or(true);

    return PER_WINDOW_INPUT_ROTATION;
}
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ namespace android {
// 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) {
+1 −1
Original line number Diff line number Diff line
@@ -3055,7 +3055,7 @@ void SurfaceFlinger::updateInputFlinger() {

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;
}