• pkotwicz's avatar
    Fix initial hiding and centering cursor on ChromeOS · 04bbbd55
    pkotwicz authored
    DisplayController::UpdateMouseLocationAfterDisplayChange() is now called during
    startup:
    - In Ozone once a channel to the GPU has been established
    - In X11 as a result of
      DisplayChangeObserver::OnTouchscreenDeviceConfigurationChanged()
    
    Moving the mouse on startup:
    - Causes side effects such as mouse hover
    - Causes a mouse event to be generated which causes
      CompoundEventFilter::SetCursorVisibilityOnEvent() to show the
      mouse cursor.
    
    This CL makes DisplayController::UpdateMouseLocationAfterDisplayChange() move the
    mouse only if necessary.
    
    BUG=450860
    TEST=Manual, see bug
    
    Review URL: https://codereview.chromium.org/902123002
    
    Cr-Commit-Position: refs/heads/master@{#318708}
    04bbbd55
display_controller.h 7.41 KB