Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 68579ab

Browse files
committed
Bug 1956711 - [Wayland] Port WaylandSurface::InvalidateLocked() to wl_surface_damage_buffer(), r=stransky
wl_surface_damage_buffer() is more preferred over wl_surface_damage() according to the wayland spec. Differential Revision: https://phabricator.services.mozilla.com/D243254
1 parent 34cf5ef commit 68579ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widget/gtk/WaylandSurface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ void WaylandSurface::InvalidateLocked(const WaylandSurfaceLock& aProofOfLock) {
10651065
MOZ_DIAGNOSTIC_ASSERT(&aProofOfLock == mSurfaceLock);
10661066
MOZ_DIAGNOSTIC_ASSERT(mSurface);
10671067

1068-
wl_surface_damage(mSurface, 0, 0, INT32_MAX, INT32_MAX);
1068+
wl_surface_damage_buffer(mSurface, 0, 0, INT32_MAX, INT32_MAX);
10691069
mSurfaceNeedsCommit = true;
10701070
}
10711071

0 commit comments

Comments
 (0)