From bdd45d62627b5b03fd3e315fbce542b226cce682 Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Thu, 26 Dec 2019 16:46:16 -0300 Subject: [PATCH] xwayland: stop direct accessing core struct member Commit "weston-log: add function to avoid direct access to compositor members in non-core code" added the function weston_compositor_add_log_scope mainly to allow libweston users to avoid direct accessing core structs, as weston_compositor. Replace weston_log_context_add_log_scope usage by weston_compositor_add_log_scope. Signed-off-by: Leandro Ribeiro --- xwayland/launcher.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xwayland/launcher.c b/xwayland/launcher.c index bbea817c..60854c8a 100644 --- a/xwayland/launcher.c +++ b/xwayland/launcher.c @@ -396,10 +396,9 @@ weston_module_init(struct weston_compositor *compositor) } wxs->wm_debug = - weston_log_ctx_add_log_scope(wxs->compositor->weston_log_ctx, - "xwm-wm-x11", - "XWM's window management X11 events\n", - NULL, NULL, NULL); + weston_compositor_add_log_scope(wxs->compositor, "xwm-wm-x11", + "XWM's window management X11 events\n", + NULL, NULL, NULL); return 0;