compositor: remove the weston_config field in weston_compositor
The config can now be retrieved with a new function defined in weston.h, wet_get_config(weston_compositor*). Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
committed by
Pekka Paalanen
parent
fba27fbef2
commit
d52f3b775b
@@ -640,7 +640,7 @@ shell_configuration(struct desktop_shell *shell)
|
||||
int ret;
|
||||
int allow_zap;
|
||||
|
||||
section = weston_config_get_section(shell->compositor->config,
|
||||
section = weston_config_get_section(wet_get_config(shell->compositor),
|
||||
"shell", NULL, NULL);
|
||||
ret = asprintf(&client, "%s/%s", weston_config_get_libexec_dir(),
|
||||
WESTON_SHELL_CLIENT);
|
||||
|
||||
Reference in New Issue
Block a user