From: Marius Vlad Date: Mon, 15 Aug 2022 16:45:53 +0000 (+0300) Subject: desktop: Avoid sending the dimensions for the first output X-Git-Tag: 17.90.0~77 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=39c91d5ccae3b65b8fd06276ec4f902e2ff09c7d;p=src%2Fagl-compositor.git desktop: Avoid sending the dimensions for the first output Rather than sending the first available output we have in the system, use explicitly the output that we specified in the configuration for that particular appid. If we didn't do that, we would first send the dimension for the first output, after which we send the dimensions for the correct output, resulting in a few configure exchanges between the client and the compositor. This fixes that by using the correct output from the beginning. Bug-AGL: SPEC-4520 Signed-off-by: Marius Vlad Change-Id: If796f1ce8ba069d4fd2c73a7bdfd42e94c9e0418 --- diff --git a/src/desktop.c b/src/desktop.c index 36fe6f2..1cda129 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -223,7 +223,10 @@ desktop_surface_added(struct weston_desktop_surface *dsurface, void *userdata) if (output && ivi->shell_client.ready) { struct ivi_output *ivi_output = to_ivi_output(output); - desktop_surface_added_configure(surface, ivi_output); + if (active_output) + desktop_surface_added_configure(surface, active_output); + else + desktop_surface_added_configure(surface, ivi_output); } /* * We delay creating "normal" desktop surfaces until later, to