From 8990aad6256f0c683cc48e64307bae634b9ebe88 Mon Sep 17 00:00:00 2001 From: UjinT34 Date: Fri, 17 Jan 2025 20:57:30 +0300 Subject: [PATCH] 10bit warning notification --- src/render/Renderer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 73d17549085..6b9f25f68ff 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1490,8 +1490,14 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) { pMonitor->output->state->setWideColorGamut(needsWCG); // FIXME do not trust enabled10bit, auto switch to 10bit and back if needed - if (needsWCG && !pMonitor->enabled10bit) + if (needsWCG && !pMonitor->enabled10bit) { Debug::log(WARN, "Wide color gamut is enabled but the display is not in 10bit mode"); + static bool shown = false; + if (!shown) { + g_pHyprNotificationOverlay->addNotification("Wide color gamut is enabled but the display is not in 10bit mode", CHyprColor{}, 15000, ICON_WARNING); + shown = true; + } + } } if (pMonitor->ctmUpdated) {