Merge "Check both parent and current windowing mode for legacy insets override" into main