summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-08-02 14:35:14 +0200
committerVaxry <vaxry@vaxry.net>2025-08-02 14:35:20 +0200
commite1e23eb9bdeed9d4d166e6d7bf07e0be983728f4 (patch)
tree73c92d711181c44d0cb921b20bfb2dd23352a79b /src/protocols/Screencopy.cpp
parentc14f792f8f1e733a0d8310712c7ca7969aa68a67 (diff)
screencopy: avoid crash on cm disabled
fixes #11310 closes #11312
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp
index a9e0e5b3..ffaca4d2 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -196,7 +196,7 @@ void CScreencopyFrame::renderMon() {
CRegion fakeDamage = {0, 0, INT16_MAX, INT16_MAX};
- const bool IS_CM_AWARE = PROTO::colorManagement->isClientCMAware(m_client->client());
+ const bool IS_CM_AWARE = PROTO::colorManagement && PROTO::colorManagement->isClientCMAware(m_client->client());
CBox monbox = CBox{0, 0, m_monitor->m_pixelSize.x, m_monitor->m_pixelSize.y}
.translate({-m_box.x, -m_box.y}) // vvvv kinda ass-backwards but that's how I designed the renderer... sigh.