diff options
Diffstat (limited to 'src/managers/ProtocolManager.cpp')
| -rw-r--r-- | src/managers/ProtocolManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/ProtocolManager.cpp b/src/managers/ProtocolManager.cpp index 34b5962a..6388ef8a 100644 --- a/src/managers/ProtocolManager.cpp +++ b/src/managers/ProtocolManager.cpp @@ -110,6 +110,7 @@ CProtocolManager::CProtocolManager() { static const auto PENABLECM = CConfigValue<Hyprlang::INT>("render:cm_enabled"); static const auto PDEBUGCM = CConfigValue<Hyprlang::INT>("debug:full_cm_proto"); + static const auto PCMV1_2 = CConfigValue<Hyprlang::INT>("experimental:wp_cm_1_2"); static const auto PENABLECT = CConfigValue<Hyprlang::INT>("render:commit_timing_enabled"); @@ -208,7 +209,7 @@ CProtocolManager::CProtocolManager() { PROTO::imageCopyCapture = makeUnique<CImageCopyCaptureProtocol>(&ext_image_copy_capture_manager_v1_interface, 1, "ImageCopyCapture"); if (*PENABLECM) - PROTO::colorManagement = makeUnique<CColorManagementProtocol>(&wp_color_manager_v1_interface, 1, "ColorManagement", *PDEBUGCM); + PROTO::colorManagement = makeUnique<CColorManagementProtocol>(&wp_color_manager_v1_interface, *PCMV1_2 ? 2 : 1, "ColorManagement", *PDEBUGCM); // ! please read the top of this file before adding another protocol |
