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:
committed by
Pekka Paalanen
parent
23289358af
commit
bdd45d6262
+3
-4
@@ -396,10 +396,9 @@ weston_module_init(struct weston_compositor *compositor)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxs->wm_debug =
|
wxs->wm_debug =
|
||||||
weston_log_ctx_add_log_scope(wxs->compositor->weston_log_ctx,
|
weston_compositor_add_log_scope(wxs->compositor, "xwm-wm-x11",
|
||||||
"xwm-wm-x11",
|
"XWM's window management X11 events\n",
|
||||||
"XWM's window management X11 events\n",
|
NULL, NULL, NULL);
|
||||||
NULL, NULL, NULL);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user