[mutter/gnome-42] window: Get backend from context when updating monitors
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-42] window: Get backend from context when updating monitors
- Date: Thu, 11 Aug 2022 12:45:58 +0000 (UTC)
commit a7050148f4dc3d603ba453325ca3b3fe72d135ca
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Aug 3 22:58:11 2022 +0200
window: Get backend from context when updating monitors
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2554>
src/core/window.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index a97763cb17..70a6bf557a 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3651,7 +3651,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]