summaryrefslogtreecommitdiff
path: root/src/protocols/ColorManagement.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-07-31 18:07:59 +0200
committerGitHub <noreply@github.com>2025-07-31 18:07:59 +0200
commit9607e3b5a88f22017af64ab1ba360a39169a4bf7 (patch)
tree28e408434d4c7781c6b6f403b3093f19b56b6d86 /src/protocols/ColorManagement.hpp
parenta907ecd4ff736a3a09410532b405a437eb48033c (diff)
screencopy: un-hdr screencopy buffers for cm-unaware clients (#11294)
Diffstat (limited to 'src/protocols/ColorManagement.hpp')
-rw-r--r--src/protocols/ColorManagement.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/protocols/ColorManagement.hpp b/src/protocols/ColorManagement.hpp
index 1d2795ed..06349927 100644
--- a/src/protocols/ColorManagement.hpp
+++ b/src/protocols/ColorManagement.hpp
@@ -18,7 +18,8 @@ class CColorManager {
public:
CColorManager(SP<CWpColorManagerV1> resource);
- bool good();
+ bool good();
+ wl_client* client();
private:
SP<CWpColorManagerV1> m_resource;
@@ -187,6 +188,8 @@ class CColorManagementProtocol : public IWaylandProtocol {
void onImagePreferredChanged(uint32_t preferredId);
void onMonitorImageDescriptionChanged(WP<CMonitor> monitor);
+ bool isClientCMAware(wl_client* client);
+
private:
void destroyResource(CColorManager* resource);
void destroyResource(CColorManagementOutput* resource);