1
0
Fork 0

wayland/surface: Fix sending preferred buffer transform

Fix an obvious copy paste error that slipped through the cracks.
Fortunately it doesn't have a visual impact for well behaving clients
but only makes us not hit direct-scanout paths, assuming no other bugs
in the stack.

Fixes: f21762ea6e (wayland: Add support for preferred_buffer_scale/transform)
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3717>
This commit is contained in:
Robert Mader 2024-04-22 11:22:15 +02:00
parent b57c80602d
commit 6a81d5f0bb

View file

@ -2457,7 +2457,7 @@ committed_state_handle_highest_scale_monitor (MetaWaylandSurface *surface)
transform = meta_wayland_surface_get_output_transform (surface);
if (transform != surface->preferred_transform)
{
wl_surface_send_preferred_buffer_transform (surface->resource, ceiled_scale);
wl_surface_send_preferred_buffer_transform (surface->resource, transform);
surface->preferred_transform = transform;
}
}