mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
kms-impl/simple: Discard pending flips when finalizing
Removing the reference isn't enough, the callbacks needs to be invoked so the buffer state machinery gets notified about the page flips being discarded. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
This commit is contained in:
parent
4dec1f5ddf
commit
2ed4e8c906
@ -1477,10 +1477,12 @@ meta_kms_impl_device_simple_finalize (GObject *object)
|
||||
|
||||
g_list_free_full (impl_device_simple->pending_page_flip_retries,
|
||||
(GDestroyNotify) retry_page_flip_data_free);
|
||||
g_list_free_full (impl_device_simple->postponed_page_flip_datas,
|
||||
(GDestroyNotify) meta_kms_page_flip_data_discard_in_impl);
|
||||
g_list_free_full (impl_device_simple->postponed_mode_set_fallback_datas,
|
||||
(GDestroyNotify) meta_kms_page_flip_data_discard_in_impl);
|
||||
dispatch_page_flip_datas (&impl_device_simple->postponed_page_flip_datas,
|
||||
(GFunc) meta_kms_page_flip_data_discard_in_impl,
|
||||
NULL);
|
||||
dispatch_page_flip_datas (&impl_device_simple->postponed_mode_set_fallback_datas,
|
||||
(GFunc) meta_kms_page_flip_data_discard_in_impl,
|
||||
NULL);
|
||||
|
||||
g_clear_pointer (&impl_device_simple->mode_set_fallback_feedback_source,
|
||||
g_source_destroy);
|
||||
|
Loading…
Reference in New Issue
Block a user