wayland: Fetch wl_output logical monitor via helper

Will be useful when wl_output gets tied to a MetaMonitor, instead of a
MetaLogicalMonitor.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1712>
This commit is contained in:
Jonas Ådahl
2021-02-05 16:46:43 +01:00
committed by Marge Bot
parent 99531f9d4b
commit 2b59b85d85
5 changed files with 28 additions and 8 deletions

View File

@ -63,6 +63,12 @@ meta_wayland_output_get_resources (MetaWaylandOutput *wayland_output)
return wayland_output->resources;
}
MetaLogicalMonitor *
meta_wayland_output_get_logical_monitor (MetaWaylandOutput *wayland_output)
{
return wayland_output->logical_monitor;
}
static void
output_resource_destroy (struct wl_resource *res)
{