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 <leandrohr@riseup.net>
This commit is contained in:
Leandro Ribeiro 2019-12-26 16:46:16 -03:00 committed by Pekka Paalanen
parent 23289358af
commit bdd45d6262

View file

@ -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;