From 2e5e800e4b334240689df5a4c2c4607f751da908 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Thu, 26 Mar 2026 02:48:06 +0300 Subject: renderer/cm: Support wp-cm-v1 version 2 (#12817) --- src/protocols/ColorManagement.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/protocols/ColorManagement.hpp') diff --git a/src/protocols/ColorManagement.hpp b/src/protocols/ColorManagement.hpp index 7cdab37d..14700c98 100644 --- a/src/protocols/ColorManagement.hpp +++ b/src/protocols/ColorManagement.hpp @@ -87,7 +87,7 @@ class CColorManagementFeedbackSurface { SP m_resource; wl_client* m_client = nullptr; - uint32_t m_currentPreferredId = 0; + uint64_t m_currentPreferredId = 0; struct { CHyprSignalListener enter; @@ -154,20 +154,23 @@ class CColorManagementParametricCreator { class CColorManagementImageDescription { public: CColorManagementImageDescription(SP resource, bool allowGetInformation); + static SP fromReference(wl_resource* res); - bool good(); - wl_client* client(); - SP resource(); + bool good(); + wl_client* client(); + SP resource(); + bool sendMaybeReady(); - WP m_self; + WP m_self; - NColorManagement::PImageDescription m_settings; + NColorManagement::PImageDescription m_settings; private: SP m_resource; wl_client* m_client = nullptr; bool m_allowGetInformation = false; + friend class CColorManager; friend class CColorManagementOutput; }; -- cgit v1.2.3