From 8fdb80a7180203a53685f199b555788108cef2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 24 Feb 2022 12:32:27 +0100 Subject: [PATCH] monitor-manager: Add NightLightSupported property to DisplayConfig This checks whether it's possible to set a CRTC GAMMA_LUT, which is what is necessary to implement night light. Part-of: --- .../org.gnome.Mutter.DisplayConfig.xml | 7 ++ src/backends/meta-monitor-manager.c | 68 ++++++++++++++++--- .../native/meta-monitor-manager-native.c | 37 +++++++--- .../x11/meta-monitor-manager-xrandr.c | 9 ++- 4 files changed, 100 insertions(+), 21 deletions(-) diff --git a/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml b/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml index af7cd6472..af78ec051 100644 --- a/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml +++ b/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml @@ -297,6 +297,13 @@ --> + + +