window: Get backend from context when updating monitors

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2554>
This commit is contained in:
Jonas Ådahl 2022-08-03 22:58:11 +02:00 committed by Marge Bot
parent 24965a78da
commit cf848c577e

View File

@ -3652,7 +3652,8 @@ find_monitor_by_winsys_id (MetaWindow *window,
void
meta_window_update_for_monitors_changed (MetaWindow *window)
{
MetaBackend *backend = meta_get_backend ();
MetaContext *context = meta_display_get_context (window->display);
MetaBackend *backend = meta_context_get_backend (context);
MetaMonitorManager *monitor_manager =
meta_backend_get_monitor_manager (backend);
const MetaLogicalMonitor *old, *new;