[automerge] Handle multiple windows in transferTouch 2p: 7ae7afde99 2p: bb074dc026

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/17530999

Bug: 220077253
Change-Id: I44d7b9fbe3ee55430b1e10573f8211dc9b96c858