ivi-shell: print available description of desktop surface

set label func for desktop surface, then it can
print available description of desktop surface

Signed-off-by: Jeri Li <jeri.li>
This commit is contained in:
Jeri Li 2025-07-13 08:12:39 +00:00 committed by Michael Olbrich
parent 088c8ec21b
commit 0f969fd6b0

View file

@ -51,6 +51,7 @@
#include "shared/helpers.h"
#include "shared/xalloc.h"
#include "frontend/weston.h"
#include <libweston/shell-utils.h>
/* Representation of ivi_surface protocol object. */
struct ivi_shell_surface
@ -646,6 +647,8 @@ desktop_surface_added(struct weston_desktop_surface *surface,
ivisurf = xzalloc(sizeof *ivisurf);
weston_surface_set_label_func(weston_surf, weston_shell_utils_surface_get_label);
ivisurf->shell = shell;
ivisurf->id_surface = IVI_INVALID_ID;