• domlaskowski's avatar
    exo: Fix multi-display hardware cursor · ba20af04
    domlaskowski authored
    This CL fixes crashes in extended desktop mode caused by incorrect
    parenting of the cursor surface, as well as cases where the cursor
    was captured with an incorrect transform or hotspot:
    
      1) The mouse enters a display with a different DSF or UI scale.
      2) The internal display is not the primary display.
      3) The display is rotated.
    
    It also adds a TODO for an accessibility regression.
    
    BUG=631136
    BUG=642894
    TEST=caroline: Cursor parenting and scaling is correct for each display.
    TEST=caroline: Cursor on rotated displays has correct orientation.
    
    Review-Url: https://codereview.chromium.org/2780623002
    Cr-Commit-Position: refs/heads/master@{#476353}
    ba20af04
wm_helper.cc 3.95 KB