[mutter] kms: Remove idle flush callback when flushing



commit b731eb29b5ff1492963e5ef508b3b8c5e284b185
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Apr 13 18:14:57 2021 +0200

    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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>

 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 6514f89f6e..5135c4ca50 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]