Use display id when checking for occlusion

When a system has multiple displays, just checking the bounds is not
sufficient since a window could have intersecting rects values on a
different display. Therefore, it is necessary to also check that the
windows are present on the same display.

Bug: 286188365
Test: atest CtsWidgetTestCases
Change-Id: I3507838b3e5ddf841ffec3154e4fa87f5b45b968
1 file changed