commit ed60948e3ae9aa11fdd0092bee390279e7ba0560
parent ca82b9a13e818d60088d4fb0988922a1a4b4b433
Author: stransky <stransky@redhat.com>
Date: Thu, 6 Nov 2025 14:34:16 +0000
Bug 1998382 [Wayland] Allow to paint to offscreen wl_surface r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D271381
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/widget/gtk/WaylandSurface.cpp b/widget/gtk/WaylandSurface.cpp
@@ -951,7 +951,7 @@ wl_surface* WaylandSurface::Lock(WaylandSurfaceLock* aWaylandSurfaceLock)
mMutex.Lock();
MOZ_DIAGNOSTIC_ASSERT(!mSurfaceLock);
mSurfaceLock = aWaylandSurfaceLock;
- return mIsReadyToDraw ? mSurface : nullptr;
+ return mSurface;
}
void WaylandSurface::Unlock(struct wl_surface** aSurface,