From: Marius Vlad Date: Thu, 12 Nov 2020 21:31:24 +0000 (+0200) Subject: desktop: Do not attempt to advertise the clients if there are none X-Git-Tag: 10.91.0~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=47d79bb6a1f1f31c538c5b98326c34d6af4fb12d;p=src%2Fagl-compositor.git desktop: Do not attempt to advertise the clients if there are none Clients not binding to agl_shell_desktop will cause spurious signal emits when they commit the changes. Make sure we only attempt to advertise if the are clients. Signed-off-by: Marius Vlad Change-Id: I5c790b105b7c7f7d759e8a8fc2c64713df22d561 --- diff --git a/src/desktop.c b/src/desktop.c index 8fe6f7d..f7d11b1 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -268,7 +268,8 @@ desktop_committed(struct weston_desktop_surface *dsurface, surface->checked_pending = true; } - if (!surface->advertised_on_launch) + if (!surface->advertised_on_launch && + !wl_list_empty(&surface->ivi->desktop_clients)) wl_signal_emit(&surface->signal_advertise_app, surface); weston_compositor_schedule_repaint(surface->ivi->compositor);