e_comp_wl_rsm: update the base_output_resolution at binding/unbinding the remote_surface 07/224407/2
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Feb 2020 08:45:02 +0000 (17:45 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Feb 2020 10:21:48 +0000 (10:21 +0000)
Change-Id: If2280be64425218c011ea6e0d06fe65215a2f1a1

src/bin/e_comp_wl_rsm.c

index e62301c8d00363ec1d298eaf7322236bd47e3548..6e0063181eba8743724166ba877fcf9f65ea396d 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;