kms: Assert that callbacks are outside of the impl context

https://gitlab.gnome.org/GNOME/mutter/merge_requests/930
This commit is contained in:
Jonas Ådahl 2019-11-08 23:51:40 +01:00
parent ee854ed7ab
commit 4abec2f8e7

View File

@ -276,6 +276,8 @@ flush_callbacks (MetaKms *kms)
GList *l;
int callback_count = 0;
meta_assert_not_in_kms_impl (kms);
for (l = kms->pending_callbacks; l; l = l->next)
{
MetaKmsCallbackData *callback_data = l->data;