• Maksim Sisov's avatar
    [ozone/wayland] Implement GetCursorScreenPoint. · efedb56a
    Maksim Sisov authored
    Wayland does not provide either location of surfaces in global space
    coordinate system or location of a pointer. Instead, only locations of
    mouse/touch events are known. Given that Chromium assumes top-level windows
    are located at origin, always provide a cursor point in regards to
    surfaces' location.
    
    If a pointer is located in any of the existing wayland windows, return the
    last known cursor position. Otherwise, return such a point, which is not
    contained by any of the windows.
    
    Bug: 875161
    Change-Id: If4de9936502efb6c49a50fe125f3fd6f5c59a4d0
    Reviewed-on: https://chromium-review.googlesource.com/c/1273295
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#628264}
    efedb56a
wayland_connection.cc 20.1 KB