[ozone/wayland] Convert WaylandCursorPosition to operate in DIP
... instead of pixels. It happens today that WaylandCursorPosition stores the last mouse position in pixels, instead of DIP. In lacros, this position is queried by the call to `display::Screen::GetScreen()->GetCursorScreenPoint()` in `ImmersiveFullscreenController::UpdateLocatedEventRevealedLock()`, for instance by hovering the mouse cursor over the upper display boundary in immersive fullscreen mode, so that the tabstrip slides down. When a high DPI display is used, the mismatch occurs. This CL changes WaylandCursorPosition to store the last mouse cursor position in DIP, instead of pixels. BUG=1153998, 1113900 R=msisov@igalia.com Change-Id: Id37ee61de4d22b8ffd190b403df91fd87e198007 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569775Reviewed-by:Maksim Sisov (GMT+2) <msisov@igalia.com> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#833294}
Showing
Please register or sign in to comment