From b5dbb7a7ab7b059e71e7bb05d152d21fa32c5dd6 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Thu, 21 Oct 2021 14:09:01 +0300 Subject: [PATCH] kiosk-shell: Allow to retrieve surface labels Nothing special, but allows scene-graph to display surface labels. Signed-off-by: Marius Vlad --- kiosk-shell/kiosk-shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiosk-shell/kiosk-shell.c b/kiosk-shell/kiosk-shell.c index 5aea5bf0..4efe261a 100644 --- a/kiosk-shell/kiosk-shell.c +++ b/kiosk-shell/kiosk-shell.c @@ -602,11 +602,14 @@ desktop_surface_added(struct weston_desktop_surface *desktop_surface, { struct kiosk_shell *shell = data; struct kiosk_shell_surface *shsurf; + struct weston_surface *surface = + weston_desktop_surface_get_surface(desktop_surface); shsurf = kiosk_shell_surface_create(shell, desktop_surface); if (!shsurf) return; + weston_surface_set_label_func(surface, surface_get_label); kiosk_shell_surface_set_fullscreen(shsurf, NULL); }