• Michael Spang's avatar
    ozone: evdev: Fix pen-related infinite recursion · c642ba45
    Michael Spang authored
    If the pen device is disabled while the pen is near the screen it leads
    to infinite recursion. This is because we make a call to disable palm
    suppression, which revalidates device enablement. Post a task instead
    of disabling inline to fix this.
    
    The same thing happens if we lose events since Reinitialize() gained
    a call to ReleaseButtons() when pen support was added, which calls
    ReportEvents(), which can again call Reinitialize(). To fix that one,
    kill ReleaseButtons() as ReleaseTouches() should be sufficient.
    
    BUG=814071
    TEST=powerd_dbus_suspend with pen touching screen
    
    Change-Id: I8bb66feddc7961f1fa28d062133671ad1c46948c
    Reviewed-on: https://chromium-review.googlesource.com/961386Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
    Commit-Queue: Michael Spang <spang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#543185}
    c642ba45
touch_event_converter_evdev.h 5.19 KB