kms/result-listener: Allow setting a custom main context

While the default when passing NULL will be the main context of the main
thread, make it possible to specify another main context, so that
result handlers can be invoked on the right thread.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2777>
This commit is contained in:
Jonas Ådahl
2023-02-14 20:18:26 +01:00
parent 1e0367bf08
commit 7c9d4b8c7c
9 changed files with 131 additions and 1 deletions

View File

@ -361,6 +361,7 @@ assign_cursor_plane (MetaCursorRendererNative *native,
cursor_hotspot_y);
meta_kms_update_add_result_listener (kms_update,
NULL,
on_kms_update_result,
native);