From fddcf8ca9139a0f92191a674b567c5faf8484974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 13 Jun 2023 22:21:31 +0200 Subject: [PATCH] renderer/native: Don't drop disable-only mode set updates If we are making an update that only disables CRTCs, we would not actually post it, but just drop it then post nothing, as it wasn't ever added to the mode set update hash table. This resulted in hotplugs where we loose the all the connectors we had, where we want to disable all CRTCs and enable nothing, to fail to disable said CRTCs. Part-of: --- src/backends/native/meta-renderer-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index e893e2f4c..57cb20b7e 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -287,6 +287,8 @@ ensure_mode_set_update (MetaRendererNative *renderer_native, return kms_update; kms_update = meta_kms_update_new (kms_device); + g_hash_table_insert (renderer_native->mode_set_updates, + kms_device, kms_update); return kms_update; }