Merge "Inherit source windowing mode in some cases." am: 530fa56bc0

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1412208

Change-Id: I13d8cc8acc9eb60ddcb4e8e5aa2afa6376d7e36f