commit 9d4bb266a64897c21a8abc1d3c12eabe75fc75cb
parent 3fc4a84465195050067f3d5a78629134c0932c58
Author: stransky <stransky@redhat.com>
Date: Wed, 12 Nov 2025 07:47:52 +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,