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

@@ -1368,7 +1368,7 @@ update_surface_output_state (gpointer key, gpointer value, gpointer user_data)
g_assert (surface->role);
logical_monitor = wayland_output->logical_monitor;
logical_monitor = meta_wayland_output_get_logical_monitor (wayland_output);
if (!logical_monitor)
{
set_surface_is_on_output (surface, wayland_output, FALSE);