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:
@@ -165,6 +165,7 @@ class DragState {
|
||||
.setContainerLayer()
|
||||
.setName("Drag and Drop Input Consumer")
|
||||
.setCallsite("DragState.showInputSurface")
|
||||
.setParent(mDisplayContent.getOverlayLayer())
|
||||
.build();
|
||||
}
|
||||
final InputWindowHandle h = getInputWindowHandle();
|
||||
|
||||
@@ -73,6 +73,7 @@ class TaskPositioningController {
|
||||
.setContainerLayer()
|
||||
.setName("Drag and Drop Input Consumer")
|
||||
.setCallsite("TaskPositioningController.showInputSurface")
|
||||
.setParent(dc.getOverlayLayer())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user