e_comp_wl_rsm: update the base_output_resolution at binding/unbinding the remote_surface 07/224807/2
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Feb 2020 08:45:02 +0000 (17:45 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 13 Feb 2020 07:15:26 +0000 (07:15 +0000)
Change-Id: If2280be64425218c011ea6e0d06fe65215a2f1a1
(cherry picked from commit 82fb03ced0033931bae72a572aa68287548f27df)

src/bin/e_comp_wl_rsm.c

index 6cc307b1f088575a3ce111f0cd130351b5642e25..b0f07a9cbb1276e03a2347f73ec384a4a817cbe3 100644 (file)
@@ -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;