mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 23:03:00 +00:00
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:
parent
023dd13d6c
commit
b731eb29b5
@ -347,6 +347,8 @@ flush_callbacks (MetaKms *kms)
|
|||||||
|
|
||||||
meta_assert_not_in_kms_impl (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)
|
for (l = kms->pending_callbacks; l; l = l->next)
|
||||||
{
|
{
|
||||||
MetaKmsCallbackData *callback_data = l->data;
|
MetaKmsCallbackData *callback_data = l->data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user