tor-browser

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

commit 0210cc7dc1e959e11efddbe66de345d451486edc
parent c92b980a448c8501bc8d28d2ed5c31fd15bc4bd0
Author: stransky <stransky@redhat.com>
Date:   Tue, 11 Nov 2025 10:42:33 +0000

Bug 1998949 [Wayland] Don't fire bounds recalculation from configure event on Wayland as we relly on mContainer GdkWindow size r=emilio

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

Diffstat:
Mwidget/gtk/nsWindow.cpp | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp @@ -4330,7 +4330,11 @@ gboolean nsWindow::OnShellConfigureEvent(GdkEventConfigure* aEvent) { return FALSE; } - SchedulePendingBounds(MayChangeCsdMargin::No); + // X11 calc bounds from outer window while Wayland uses + // container size after container allocation event. + if (GdkIsX11Display()) { + SchedulePendingBounds(MayChangeCsdMargin::No); + } return FALSE; }