From: SooChan Lim Date: Mon, 10 Feb 2020 08:45:02 +0000 (+0900) Subject: e_comp_wl_rsm: update the base_output_resolution at binding/unbinding the remote_surface X-Git-Tag: submit/tizen/20200214.070252~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82fb03ced0033931bae72a572aa68287548f27df;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl_rsm: update the base_output_resolution at binding/unbinding the remote_surface Change-Id: If2280be64425218c011ea6e0d06fe65215a2f1a1 --- diff --git a/src/bin/e_comp_wl_rsm.c b/src/bin/e_comp_wl_rsm.c index e62301c8d0..6e0063181e 100644 --- a/src/bin/e_comp_wl_rsm.c +++ b/src/bin/e_comp_wl_rsm.c @@ -881,6 +881,10 @@ _remote_surface_bind_client(E_Comp_Wl_Remote_Surface *remote_surface, E_Client * RSMINF("Clear previous bind_ec:%p", remote_surface->ec, "SURFACE", remote_surface, remote_surface->bind_ec); + /* check the base_output resolution */ + if (remote_surface->provider && remote_surface->provider->common.ec) + e_client_base_output_resolution_rsm_update(remote_surface->bind_ec, remote_surface->provider->common.ec); + remote_surface->bind_ec->comp_data->pending.sx = 0; remote_surface->bind_ec->comp_data->pending.sy = 0; remote_surface->bind_ec->comp_data->pending.new_attach = EINA_TRUE; @@ -949,6 +953,9 @@ bind_ec_set: remote_surface->bind_ec->comp_data->pending.buffer_viewport = remote_surface->provider->common.ec->comp_data->scaler.buffer_viewport; + /* check the base_output resolution */ + e_client_base_output_resolution_rsm_update(ec, remote_surface->provider->common.ec); + e_comp_wl_surface_commit(remote_surface->bind_ec); remote_surface->need_prebind = EINA_TRUE;