mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 17:28:19 +00:00
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:
parent
23289358af
commit
bdd45d6262
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue