mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-22 11:14:21 +00:00
hmi-controller: don't add surface to layer in mode_random_replace()
There is no need to call layer_add_surface() in mode_random_replace() because the surface has already been added to the layer. Rather, calling layer_add_surface() has the issue that the child surface is displayed below the parent surface. Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
This commit is contained in:
parent
9cdb7c7450
commit
036a76e3eb
|
@ -438,8 +438,6 @@ mode_random_replace(struct hmi_controller *hmi_ctrl,
|
|||
surface_y,
|
||||
surface_width,
|
||||
surface_height);
|
||||
|
||||
hmi_ctrl->interface->layer_add_surface(layers[layer_idx]->ivilayer, ivisurf);
|
||||
}
|
||||
|
||||
free(layers);
|
||||
|
|
Loading…
Reference in a new issue