summaryrefslogtreecommitdiff
path: root/src/protocols
diff options
context:
space:
mode:
authorLee Bousfield <ljbousfield@gmail.com>2025-03-07 16:54:56 -0600
committerGitHub <noreply@github.com>2025-03-07 23:54:56 +0100
commit8ce1665fdb508fc66ba84111aee897cd9b19858c (patch)
tree0037930b12d49763f6817837aff5ab45bf0e1e0b /src/protocols
parent7753e8ea686ba0aeaa825502f27e5b3f813faade (diff)
protocols: Fix blocked color management get_information (#9563)
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/ColorManagement.cpp8
-rw-r--r--src/protocols/ColorManagement.hpp2
-rw-r--r--src/protocols/XXColorManagement.cpp4
-rw-r--r--src/protocols/XXColorManagement.hpp2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/protocols/ColorManagement.cpp b/src/protocols/ColorManagement.cpp
index ef48b20c..1a95c8bf 100644
--- a/src/protocols/ColorManagement.cpp
+++ b/src/protocols/ColorManagement.cpp
@@ -186,7 +186,7 @@ CColorManager::CColorManager(SP<CWpColorManagerV1> resource) : m_resource(resour
}
const auto RESOURCE = PROTO::colorManagement->m_vImageDescriptions.emplace_back(
- makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id)));
+ makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id), false));
if UNLIKELY (!RESOURCE->good()) {
r->noMemory();
@@ -230,7 +230,7 @@ CColorManagementOutput::CColorManagementOutput(SP<CWpColorManagementOutputV1> re
PROTO::colorManagement->destroyResource(imageDescription.get());
const auto RESOURCE = PROTO::colorManagement->m_vImageDescriptions.emplace_back(
- makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id)));
+ makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id), true));
if UNLIKELY (!RESOURCE->good()) {
r->noMemory();
@@ -448,7 +448,7 @@ CColorManagementIccCreator::CColorManagementIccCreator(SP<CWpImageDescriptionCre
}
const auto RESOURCE = PROTO::colorManagement->m_vImageDescriptions.emplace_back(
- makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id)));
+ makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id), false));
if UNLIKELY (!RESOURCE->good()) {
r->noMemory();
@@ -505,7 +505,7 @@ CColorManagementParametricCreator::CColorManagementParametricCreator(SP<CWpImage
}
const auto RESOURCE = PROTO::colorManagement->m_vImageDescriptions.emplace_back(
- makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id)));
+ makeShared<CColorManagementImageDescription>(makeShared<CWpImageDescriptionV1>(r->client(), r->version(), id), false));
if UNLIKELY (!RESOURCE->good()) {
r->noMemory();
diff --git a/src/protocols/ColorManagement.hpp b/src/protocols/ColorManagement.hpp
index 5e1a70ba..55219b8f 100644
--- a/src/protocols/ColorManagement.hpp
+++ b/src/protocols/ColorManagement.hpp
@@ -138,7 +138,7 @@ class CColorManagementParametricCreator {
class CColorManagementImageDescription {
public:
- CColorManagementImageDescription(SP<CWpImageDescriptionV1> resource, bool allowGetInformation = false);
+ CColorManagementImageDescription(SP<CWpImageDescriptionV1> resource, bool allowGetInformation);
bool good();
wl_client* client();
diff --git a/src/protocols/XXColorManagement.cpp b/src/protocols/XXColorManagement.cpp
index 5c27c6e7..57d4c5fd 100644
--- a/src/protocols/XXColorManagement.cpp
+++ b/src/protocols/XXColorManagement.cpp
@@ -161,7 +161,7 @@ CXXColorManagementOutput::CXXColorManagementOutput(SP<CXxColorManagementOutputV4
PROTO::xxColorManagement->destroyResource(imageDescription.get());
const auto RESOURCE = PROTO::xxColorManagement->m_vImageDescriptions.emplace_back(
- makeShared<CXXColorManagementImageDescription>(makeShared<CXxImageDescriptionV4>(r->client(), r->version(), id)));
+ makeShared<CXXColorManagementImageDescription>(makeShared<CXxImageDescriptionV4>(r->client(), r->version(), id), true));
if UNLIKELY (!RESOURCE->good()) {
r->noMemory();
@@ -368,7 +368,7 @@ CXXColorManagementParametricCreator::CXXColorManagementParametricCreator(SP<CXxI
}
const auto RESOURCE = PROTO::xxColorManagement->m_vImageDescriptions.emplace_back(
- makeShared<CXXColorManagementImageDescription>(makeShared<CXxImageDescriptionV4>(r->client(), r->version(), id)));
+ makeShared<CXXColorManagementImageDescription>(makeShared<CXxImageDescriptionV4>(r->client(), r->version(), id), false));
if UNLIKELY (!RESOURCE->good()) {
r->noMemory();
diff --git a/src/protocols/XXColorManagement.hpp b/src/protocols/XXColorManagement.hpp
index 24a26924..96e99752 100644
--- a/src/protocols/XXColorManagement.hpp
+++ b/src/protocols/XXColorManagement.hpp
@@ -119,7 +119,7 @@ class CXXColorManagementParametricCreator {
class CXXColorManagementImageDescription {
public:
- CXXColorManagementImageDescription(SP<CXxImageDescriptionV4> resource_, bool allowGetInformation = false);
+ CXXColorManagementImageDescription(SP<CXxImageDescriptionV4> resource_, bool allowGetInformation);
bool good();
wl_client* client();