• Alexander Dunaev's avatar
    [ozone/wayland] Fixed wrong behaviour on maximize/restore. · 193ae6e7
    Alexander Dunaev authored
    The handler of configure surface events didn't take whether the window
    had normal state when responding to zero width and height passed by the
    compositor.  This resulted in unnecessary restoring of window size
    when it should remain maximized of expanded to full screen.
    
    This CL fixes the behaviour and improves the test to cover the scenario
    explained above.
    
    R=msisov@igalia.com
    
    Bug: 934686
    Change-Id: I4dd7e01484ccea663f0e0012288d6de70e48ad06
    Reviewed-on: https://chromium-review.googlesource.com/c/1489195
    Commit-Queue: Alexander Dunaev <adunaev@igalia.com>
    Reviewed-by: default avatarMaksim Sisov <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#636757}
    193ae6e7
wayland_window_unittest.cc 30.3 KB