diff options
author | Daniel Stone <daniels@collabora.com> | 2022-01-17 13:54:21 +0000 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2022-03-31 17:15:55 +0000 |
commit | b77c2374ee81f058e5f4ea20b43614b878236fbb (patch) | |
tree | 219746409fe842908682f1ac2137d7726443ccf4 /kiosk-shell | |
parent | 7059ec7807bc7b8a3ad925946cc944788384280e (diff) |
shell: Rename solid_color_surface to weston_curtain
create_solid_color_surface actually returns a weston_view that it
creates internally. Since weston_solid_color_view is long and dull,
rename it to weston_curtain.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'kiosk-shell')
-rw-r--r-- | kiosk-shell/kiosk-shell.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/kiosk-shell/kiosk-shell.c b/kiosk-shell/kiosk-shell.c index 14857ecc..9f2c1fa6 100644 --- a/kiosk-shell/kiosk-shell.c +++ b/kiosk-shell/kiosk-shell.c @@ -480,6 +480,7 @@ static void kiosk_shell_output_recreate_background(struct kiosk_shell_output *shoutput) { struct kiosk_shell *shell = shoutput->shell; + struct weston_compositor *ec = shell->compositor; struct weston_output *output = shoutput->output; struct weston_config_section *shell_section = NULL; uint32_t bg_color = 0x0; @@ -505,12 +506,10 @@ kiosk_shell_output_recreate_background(struct kiosk_shell_output *shoutput) solid_surface.surface_committed = NULL; solid_surface.surface_private = NULL; - shoutput->background_view = - create_solid_color_surface(shoutput->shell->compositor, - &solid_surface, - output->x, output->y, - output->width, - output->height); + shoutput->background_view = weston_curtain_create(ec, &solid_surface, + output->x, output->y, + output->width, + output->height); weston_surface_set_role(shoutput->background_view->surface, "kiosk-shell-background", NULL, 0); |