commit 9d590fcf3ffd488cdee2f6807cd059f025e427d3 parent 0558e64738a8690d125e9d9ae069599b702cf4d7 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:
| M | widget/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; }