From f9bbe22499dfc4b909d0e98180d5e3d03bb2ab6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 9 Oct 2023 16:15:07 +0800 Subject: [PATCH] monitor-manager/native: Update assignments on empty-config too Not doing so means we'll have whatever old assignments were there, which can cause problems when e.g. newly generated output/crtc objects automatically find old assignments. Related: https://bugzilla.redhat.com/show_bug.cgi?id=2242612 Part-of: --- src/backends/native/meta-monitor-manager-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-monitor-manager-native.c b/src/backends/native/meta-monitor-manager-native.c index 48c5dac78..85234ce0d 100644 --- a/src/backends/native/meta-monitor-manager-native.c +++ b/src/backends/native/meta-monitor-manager-native.c @@ -286,6 +286,8 @@ meta_monitor_manager_native_apply_monitors_config (MetaMonitorManager *ma if (!config) { + apply_crtc_assignments (manager, NULL, 0, NULL, 0); + if (!manager->in_init) { MetaBackend *backend = meta_monitor_manager_get_backend (manager);