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

Commit 2d519acd authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Should update surface position of the window before report resize" into main am: cac166a1

parents 135dba45 cac166a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1003,6 +1003,7 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
                // complete configuration.
                continue;
            }
            win.updateSurfacePositionIfNeeded();
            win.reportResized();
            mWmService.mResizingWindows.remove(i);
        }
+8 −0
Original line number Diff line number Diff line
@@ -5279,6 +5279,14 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        super.prepareSurfaces();
    }

    void updateSurfacePositionIfNeeded() {
        if (mWindowFrames.mRelFrame.top == mWindowFrames.mLastRelFrame.top
                && mWindowFrames.mRelFrame.left == mWindowFrames.mLastRelFrame.left) {
            return;
        }
        updateSurfacePosition(getSyncTransaction());
    }

    @Override
    @VisibleForTesting
    void updateSurfacePosition(Transaction t) {