Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14a9f2b9 authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix drag and drop surfaces on secondary displays.

Bug: 7183618
Change-Id: I4ef746916aad984640f1eb3b3c71b1e34595aabd
parent 2033763b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -280,7 +280,8 @@ final class Session extends IWindowSession.Stub
            // !!! FIXME: put all this heavy stuff onto the mH looper, as well as
            // the actual drag event dispatch stuff in the dragstate

            mService.mDragState.register(callingWin.mDisplayContent.getDisplay());
            Display display = callingWin.mDisplayContent.getDisplay();
            mService.mDragState.register(display);
            mService.mInputMonitor.updateInputWindowsLw(true /*force*/);
            if (!mService.mInputManager.transferTouchFocus(callingWin.mInputChannel,
                    mService.mDragState.mServerChannel)) {
@@ -310,6 +311,7 @@ final class Session extends IWindowSession.Stub
                        touchY - thumbCenterY);
                surface.setAlpha(.7071f);
                surface.setLayer(mService.mDragState.getDragLayerLw());
                surface.setLayerStack(display.getLayerStack());
                surface.show();
            } finally {
                Surface.closeTransaction();