commit 03df8d96c2da1d3cd907922847a9bfc29f556103
parent 5edd0563450e43d81d905f1966f0fba723aa4603
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Mon, 5 Jan 2026 10:03:09 +0000
Bug 2006900 - Avoid spurious resize events when computing GTK bounds. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D277326
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
@@ -4230,6 +4230,10 @@ void nsWindow::SchedulePendingBounds() {
void nsWindow::MaybeRecomputeBounds() {
LOG("MaybeRecomputeBounds %d", mPendingBoundsChange);
if (mPendingBoundsChange) {
+ // Make sure GTK has laid out our child window / mContainer properly,
+ // so that we don't get broken client margins, and in order to avoid
+ // spurious resize events.
+ gtk_container_check_resize(GTK_CONTAINER(mShell));
RecomputeBounds();
}
}