Fix drag and drop and resize freeform window broken on secondary display

Set the input surface's parent to the display overlay so it could set
the corresponding layer stack.

Test: enabled simulate display and freeform, move or resize the window,
Test: drag and drop content on second display
Bug: 234405646
Change-Id: I6720a077dededc13d674ba1f80ce9b6b5169f613
This commit is contained in:
Arthur Hung
2022-05-31 07:43:44 +00:00
parent d59d17d74a
commit 73fef0d6f2
2 changed files with 2 additions and 0 deletions

View File

@@ -165,6 +165,7 @@ class DragState {
.setContainerLayer()
.setName("Drag and Drop Input Consumer")
.setCallsite("DragState.showInputSurface")
.setParent(mDisplayContent.getOverlayLayer())
.build();
}
final InputWindowHandle h = getInputWindowHandle();

View File

@@ -73,6 +73,7 @@ class TaskPositioningController {
.setContainerLayer()
.setName("Drag and Drop Input Consumer")
.setCallsite("TaskPositioningController.showInputSurface")
.setParent(dc.getOverlayLayer())
.build();
}