From 74ce9592b55e54b307844a33e0ef1159adcc6292 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 8 Sep 2022 16:45:29 +0800 Subject: [PATCH] kms: Avoid queuing multiple (un)assignments to the same plane in an update Just like we already do in `meta_kms_update_assign_plane`. Part-of: --- src/backends/native/meta-kms-update.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-kms-update.c b/src/backends/native/meta-kms-update.c index 13b30061a..92bf3362c 100644 --- a/src/backends/native/meta-kms-update.c +++ b/src/backends/native/meta-kms-update.c @@ -316,6 +316,8 @@ meta_kms_update_unassign_plane (MetaKmsUpdate *update, g_assert (meta_kms_crtc_get_device (crtc) == update->device); g_assert (meta_kms_plane_get_device (plane) == update->device); + drop_plane_assignment (update, plane, NULL); + plane_assignment = g_new0 (MetaKmsPlaneAssignment, 1); *plane_assignment = (MetaKmsPlaneAssignment) { .update = update,