Fix computation of child window insets.

Translate some old code that derived conditions
from Surface layers to directly infer the conditions.

Bug: 75253006
Test: Manual. go/wm-smoke
Change-Id: Ib114e8cb3b7c2255d68237e18eebba8f48e0fb16
4 files changed