protocols/cm: fix CColorManagementSurface m_imageDescription init (#12734)

This commit is contained in:
UjinT34 2025-12-27 22:25:57 +03:00 committed by GitHub
parent 610c59dc34
commit 5faa66d297
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,8 @@ CColorManagementSurface::CColorManagementSurface(SP<CWpColorManagementSurfaceV1>
if UNLIKELY (!good())
return;
m_client = m_resource->client();
m_client = m_resource->client();
m_imageDescription = DEFAULT_IMAGE_DESCRIPTION;
m_resource->setDestroy([this](CWpColorManagementSurfaceV1* r) {
LOGM(Log::TRACE, "Destroy wp cm surface {}", (uintptr_t)m_surface);