diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2022-08-15 19:45:53 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2022-09-14 16:35:17 +0000 |
commit | 39c91d5ccae3b65b8fd06276ec4f902e2ff09c7d (patch) | |
tree | caef59e9c5970625420b8cae456b30023273931c | |
parent | a99d56dad0ad4ade344b37c9119908254154336c (diff) |
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 <marius.vlad@collabora.com>
Change-Id: If796f1ce8ba069d4fd2c73a7bdfd42e94c9e0418
-rw-r--r-- | src/desktop.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |