• Maksim Sisov's avatar
    [ozone/x11] Implement HasCapture method · 366a4d12
    Maksim Sisov authored
    When user clicks on a non client area, the content
    area stops receiving events because base implementation
    of the HasCapture method always returns false. This
    confuses the capture client, and capture is never
    reset.
    
    Thus, to fix the problem, implement the method on
    the X11WindowOzone level and provide up-to-date
    information whether the window has explicit capture
    or not.
    
    Bug: 789065
    Change-Id: I4445f4cceb7c801f0ab0cfe4df005e977ba36569
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1657829Reviewed-by: default avatarkylechar <kylechar@chromium.org>
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#669142}
    366a4d12
x11_window_ozone.h 1.97 KB