From 8a19dc19a1eee48cff9fea03dca4952bc2967d46 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 26 Oct 2023 21:01:54 +0400 Subject: [PATCH] protocol: clarify defaults with wl_compositor@v6 This should be sufficient for clients to not decide to fallback to output based logic to determine scaling/transform when compositor doesn't send any of the v6 events. Signed-off-by: Kirill Chibisov --- protocol/wayland.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index bc7865b0..b4141fca 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -1826,6 +1826,9 @@ This event indicates the preferred buffer scale for this surface. It is sent whenever the compositor's preference changes. + Before receiving this event the preferred buffer scale for this surface + is 1. + It is intended that scaling aware clients use this event to scale their content and use wl_surface.set_buffer_scale to indicate the scale they have rendered with. This allows clients to supply a higher detail @@ -1839,6 +1842,9 @@ This event indicates the preferred buffer transform for this surface. It is sent whenever the compositor's preference changes. + Before receiving this event the preferred buffer transform for this + surface is normal. + It is intended that transform aware clients use this event to apply the transform to their content and use wl_surface.set_buffer_transform to indicate the transform they have rendered with.