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:
parent
af7dcdddac
commit
19744a5207
@ -327,7 +327,6 @@ fs_output_create(struct fullscreen_shell *shell, struct weston_output *output)
|
||||
fsout->curtain = create_curtain(shell->compositor, fsout,
|
||||
output->x, output->y,
|
||||
output->width, output->height);
|
||||
weston_surface_map(fsout->curtain->view->surface);
|
||||
fsout->curtain->view->is_mapped = true;
|
||||
weston_layer_entry_insert(&shell->layer.view_list,
|
||||
&fsout->curtain->view->layer_link);
|
||||
|
@ -523,7 +523,6 @@ kiosk_shell_output_recreate_background(struct kiosk_shell_output *shoutput)
|
||||
&shoutput->curtain->view->layer_link);
|
||||
|
||||
shoutput->curtain->view->is_mapped = true;
|
||||
weston_surface_map(shoutput->curtain->view->surface);
|
||||
shoutput->curtain->view->surface->output = output;
|
||||
weston_view_set_output(shoutput->curtain->view, output);
|
||||
}
|
||||
|
@ -185,6 +185,8 @@ weston_curtain_create(struct weston_compositor *compositor,
|
||||
pixman_region32_init(&surface->input);
|
||||
}
|
||||
|
||||
weston_surface_map(surface);
|
||||
|
||||
weston_view_set_position(view, params->x, params->y);
|
||||
|
||||
return curtain;
|
||||
|
Loading…
Reference in New Issue
Block a user