tor-browser

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

commit db1bf99e8930697acaf3fcbd109bc495df570b25
parent b9bd75cab0573e62ffa00d5ad1b804a91cbec5f4
Author: stransky <stransky@redhat.com>
Date:   Wed, 12 Nov 2025 07:59:04 +0000

Bug 1999513 [Wayland] Apply opaque changes only if we have buffer attached to avoid painting of empty window r=emilio

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

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

diff --git a/widget/gtk/WaylandSurface.cpp b/widget/gtk/WaylandSurface.cpp @@ -303,7 +303,11 @@ void WaylandSurface::RequestFrameCallbackLocked( }}; mOpaqueRegionFrameCallback = wl_surface_frame(mSurface); wl_callback_add_listener(mOpaqueRegionFrameCallback, &listener, this); - mSurfaceNeedsCommit = true; + // Apply opaque changes only if we have buffer attached to avoid painting + // of empty window. + if (mBufferAttached) { + mSurfaceNeedsCommit = true; + } } if (!mFrameCallbackEnabled || !mFrameCallbackHandler.IsSet()) {