mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
window: Get backend from context when updating monitors
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2554>
This commit is contained in:
parent
24965a78da
commit
cf848c577e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user