tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 222bb67dc8270ca15bf11c3e3d51d7765bb2db24
parent d61c4af6da7d209d9649a68819cbe36771c5e20a
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Wed, 17 Dec 2025 11:22:57 +0000

Bug 2006320 - Only notify moves when client margins actually change. r=stransky

Otherwise we get spurious move notifications for popups. For Wayland that can
lose some anchoring details.

Differential Revision: https://phabricator.services.mozilla.com/D276646

Diffstat:
Mwidget/gtk/nsWindow.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp @@ -3567,9 +3567,9 @@ void nsWindow::RecomputeBounds(bool aMayChangeCsdMargin, bool aScaleChange) { // We need to send WindowMoved even if only the client margins changed // so that BrowserParent picks up the new offsets. - const bool moved = aScaleChange || aMayChangeCsdMargin || + const bool moved = aScaleChange || clientMarginsChanged || oldClientArea.TopLeft() != mClientArea.TopLeft(); - const bool resized = aScaleChange || aMayChangeCsdMargin || + const bool resized = aScaleChange || clientMarginsChanged || oldClientArea.Size() != mClientArea.Size(); if (moved) {