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

Commit cac166a1 authored by Riddle Hsu's avatar Riddle Hsu Committed by Gerrit Code Review
Browse files

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

parents 8dcfe883 0024a31d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -996,6 +996,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
@@ -5190,6 +5190,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) {