Backport upstream MR2623 to fix night light controls

This commit is contained in:
Kalev Lember 2022-09-22 13:15:26 +02:00
parent 08d29c41af
commit 13502e95dc
2 changed files with 36 additions and 1 deletions

28
2623.patch Normal file
View File

@ -0,0 +1,28 @@
From 89b8edcc6faefb5d2788bb5fa6d91b92181a4cde Mon Sep 17 00:00:00 2001
From: Sebastian Wick <sebastian.wick@redhat.com>
Date: Tue, 13 Sep 2022 20:03:42 +0200
Subject: [PATCH] monitor: Keep the dbus night-light-supported property in sync
Fixes #2424
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2623>
---
src/backends/meta-monitor-manager.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c
index a60518850d..5c9a540299 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -1184,6 +1184,8 @@ update_night_light_supported (MetaMonitorManager *manager)
priv->night_light_supported = night_light_supported;
g_object_notify_by_pspec (G_OBJECT (manager),
obj_props[PROP_NIGHT_LIGHT_SUPPORTED]);
+ meta_dbus_display_config_set_night_light_supported (manager->display_config,
+ night_light_supported);
}
void
--
GitLab

View File

@ -12,7 +12,7 @@
Name: mutter Name: mutter
Version: 43.0 Version: 43.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Window and compositing manager based on Clutter Summary: Window and compositing manager based on Clutter
License: GPLv2+ License: GPLv2+
@ -28,6 +28,10 @@ Patch1: 0001-Revert-build-Do-not-provide-built-sources-as-libmutt.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1936991 # https://bugzilla.redhat.com/show_bug.cgi?id=1936991
Patch2: mutter-42.alpha-disable-tegra.patch Patch2: mutter-42.alpha-disable-tegra.patch
# Backported from upstream
# https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2623
Patch3: 2623.patch
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.41.0 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.41.0
BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(libwacom) BuildRequires: pkgconfig(libwacom)
@ -173,6 +177,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{_datadir}/mutter-%{mutter_api_version}/tests %{_datadir}/mutter-%{mutter_api_version}/tests
%changelog %changelog
* Thu Sep 22 2022 Kalev Lember <klember@redhat.com> - 43.0-2
- Backport upstream MR2623 to fix night light controls
* Sat Sep 17 2022 Florian Müllner <fmuellner@redhat.com> - 43.0-1 * Sat Sep 17 2022 Florian Müllner <fmuellner@redhat.com> - 43.0-1
- Update to 43.0 - Update to 43.0