Merge "Check both parent and current windowing mode for legacy insets override" into 24D1-dev