summaryrefslogtreecommitdiff
path: root/weston-ivi-shell/src/ivi-controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'weston-ivi-shell/src/ivi-controller.c')
-rw-r--r--weston-ivi-shell/src/ivi-controller.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index fd6c7d8..5a5e17c 100644
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -42,6 +42,7 @@
#include "wayland-util.h"
#define IVI_CLIENT_SURFACE_ID_ENV_NAME "IVI_CLIENT_SURFACE_ID"
+#define IVI_CLIENT_DEBUG_SCOPES_ENV_NAME "IVI_CLIENT_DEBUG_STREAM_NAMES"
struct ivilayer;
struct iviscreen;
@@ -1976,6 +1977,10 @@ get_config(struct weston_compositor *compositor, struct ivishell *shell)
"bkgnd-surface-id",
&shell->bkgnd_surface_id, -1);
+ weston_config_section_get_string(section,
+ "debug-scopes",
+ &shell->debug_scopes, NULL);
+
weston_config_section_get_color(section,
"bkgnd-color",
&shell->bkgnd_color, 0xFF000000);
@@ -2163,6 +2168,10 @@ launch_client_process(void *data)
sprintf(option, "%d", shell->bkgnd_surface_id);
setenv(IVI_CLIENT_SURFACE_ID_ENV_NAME, option, 0x1);
+ if (shell->debug_scopes) {
+ setenv(IVI_CLIENT_DEBUG_SCOPES_ENV_NAME, shell->debug_scopes, 0x1);
+ free(shell->debug_scopes);
+ }
shell->client = weston_client_start(shell->compositor,
shell->ivi_client_name);