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

Commit c0d3b8c8 authored by Garfield Tan's avatar Garfield Tan
Browse files

Stop removing raw status when device is disabled.

Having them there makes the following touch unregistered after user
doesn't lift their finger before turning off their primary display.

Bug: 177403144
Test: The following touch is registered.
Change-Id: I045ccff6378ff60d8f2080808dad5f7d0071c8af
parent 986aaac9
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1453,8 +1453,6 @@ void TouchInputMapper::processRawTouches(bool timeout) {
    if (mDeviceMode == DeviceMode::DISABLED) {
    if (mDeviceMode == DeviceMode::DISABLED) {
        // Drop all input if the device is disabled.
        // Drop all input if the device is disabled.
        cancelTouch(mCurrentRawState.when);
        cancelTouch(mCurrentRawState.when);
        mCurrentRawState.clear();
        mRawStatesPending.clear();
        mCurrentCookedState.clear();
        mCurrentCookedState.clear();
        updateTouchSpots();
        updateTouchSpots();
        return;
        return;