weston-curtain: Always mark surface as mapped

The surface always has valid content, hence it can always be mapped.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2022-06-02 10:10:56 +01:00 committed by Marius Vlad
parent af7dcdddac
commit 19744a5207
3 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,6 @@ fs_output_create(struct fullscreen_shell *shell, struct weston_output *output)
fsout->curtain = create_curtain(shell->compositor, fsout, fsout->curtain = create_curtain(shell->compositor, fsout,
output->x, output->y, output->x, output->y,
output->width, output->height); output->width, output->height);
weston_surface_map(fsout->curtain->view->surface);
fsout->curtain->view->is_mapped = true; fsout->curtain->view->is_mapped = true;
weston_layer_entry_insert(&shell->layer.view_list, weston_layer_entry_insert(&shell->layer.view_list,
&fsout->curtain->view->layer_link); &fsout->curtain->view->layer_link);

View File

@ -523,7 +523,6 @@ kiosk_shell_output_recreate_background(struct kiosk_shell_output *shoutput)
&shoutput->curtain->view->layer_link); &shoutput->curtain->view->layer_link);
shoutput->curtain->view->is_mapped = true; shoutput->curtain->view->is_mapped = true;
weston_surface_map(shoutput->curtain->view->surface);
shoutput->curtain->view->surface->output = output; shoutput->curtain->view->surface->output = output;
weston_view_set_output(shoutput->curtain->view, output); weston_view_set_output(shoutput->curtain->view, output);
} }

View File

@ -185,6 +185,8 @@ weston_curtain_create(struct weston_compositor *compositor,
pixman_region32_init(&surface->input); pixman_region32_init(&surface->input);
} }
weston_surface_map(surface);
weston_view_set_position(view, params->x, params->y); weston_view_set_position(view, params->x, params->y);
return curtain; return curtain;