Use the layout frame to decide whether to do a server sync

When the shell side resize/reposition happens, the relayout won't happen
until the next traversal happens. However, the mWinFrame will be updated
directly before the relayout happens. When that's happening, the
relayout may miss the actual resize/reposition from the shell.

Test: See b/266582561. Check the unfold compat mode.
Bug: 266582561
Change-Id: I059db87e0bb61ddc4efcc8e1f67e4fa532c4e5a9
1 file changed