From b731eb29b5ff1492963e5ef508b3b8c5e284b185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 13 Apr 2021 18:14:57 +0200 Subject: [PATCH] kms: Remove idle flush callback when flushing We might flush in other places than the idle callback; in this case, we don't need the idle callback anymore, so remove it. Part-of: --- src/backends/native/meta-kms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-kms.c b/src/backends/native/meta-kms.c index 6514f89f6..5135c4ca5 100644 --- a/src/backends/native/meta-kms.c +++ b/src/backends/native/meta-kms.c @@ -347,6 +347,8 @@ flush_callbacks (MetaKms *kms) meta_assert_not_in_kms_impl (kms); + g_clear_handle_id (&kms->callback_source_id, g_source_remove); + for (l = kms->pending_callbacks; l; l = l->next) { MetaKmsCallbackData *callback_data = l->data;