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>
This commit is contained in:
Jonas Ådahl 2021-04-13 18:14:57 +02:00 committed by Marge Bot
parent 023dd13d6c
commit b731eb29b5

View File

@ -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;