[ozone/wayland] Relax condition to call PlatformWindowDelegate::OnWindowStateChanged()
The way the logic is currently implemented prevents the delegate from being notified of state changes most of the time. This CL relaxes the sanity checks in WaylandToplevelWindow::HandleSurfaceConfigure(), causing DesktopWTHPlatform::OnWindowStateChanged() to get called more frequently, but holding now the correct state. This will allow DesktopWTHPlatform to react on state changes more reliably (eg lacros' immersive fullscreen behavior). Last, this CL changes the logic that sets and unsets fullscreen. Previously, UnSetFullscreen() was being called for all operations different than "enter fullscreen". This is needless and might mess compositors up. TEST=ozone_unittests adapted accordingly. BUG=1113900 R=msisov@igalia.com, nickdiego@igalia.com Change-Id: Iddffaf5d4f0e20898db0016320935904b9816e45 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2601219 Auto-Submit: Antonio Gomes <tonikitoo@igalia.com> Reviewed-by:Maksim Sisov <msisov@igalia.com> Reviewed-by:
Nick Yamane <nickdiego@igalia.com> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#840125}
Showing
Please register or sign in to comment