diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-07-31 18:07:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 18:07:59 +0200 |
| commit | 9607e3b5a88f22017af64ab1ba360a39169a4bf7 (patch) | |
| tree | 28e408434d4c7781c6b6f403b3093f19b56b6d86 /src/protocols/ColorManagement.hpp | |
| parent | a907ecd4ff736a3a09410532b405a437eb48033c (diff) | |
screencopy: un-hdr screencopy buffers for cm-unaware clients (#11294)
Diffstat (limited to 'src/protocols/ColorManagement.hpp')
| -rw-r--r-- | src/protocols/ColorManagement.hpp | 5 |
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); |
