e_comp_wl_rsm: send 'visibility' of remote surface provider 69/92769/5
authorMinJeong Kim <minjjj.kim@samsung.com>
Mon, 17 Oct 2016 11:32:20 +0000 (20:32 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 2 Nov 2016 02:03:47 +0000 (19:03 -0700)
Change-Id: I8efbefc0daa70c25bb824ca0cf283e62b94ff9c7
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_comp_wl_rsm.c

index 7aad866f0893fde4d72333af906917cd48759d5a..9fb46e2e6118951809ff41b82a0f3a49fd3f0167 100644 (file)
@@ -225,11 +225,13 @@ _remote_provider_offscreen_set(E_Comp_Wl_Remote_Provider* provider, Eina_Bool se
 
         ec->icccm.accepts_focus = ec->icccm.take_focus = ec->want_focus = EINA_FALSE;
         ec->placed = EINA_TRUE;
+        e_client_visibility_skip_set(ec, EINA_TRUE);
 
         _remote_provider_onscreen_parent_calculate(provider);
      }
    else
      {
+        e_client_visibility_skip_set(ec, EINA_FALSE);
         provider->is_offscreen = set;
         ec->icccm.accepts_focus = ec->icccm.take_focus = ec->want_focus = EINA_TRUE;
         ec->placed = EINA_FALSE;
@@ -250,6 +252,9 @@ _remote_provider_visible_set(E_Comp_Wl_Remote_Provider *provider, Eina_Bool set)
         provider->vis_ref ++;
         if (provider->vis_ref == 1)
           {
+             provider->ec->visibility.obscured = E_VISIBILITY_UNOBSCURED;
+             e_policy_client_visibility_send(provider->ec);
+
              tizen_remote_surface_provider_send_visibility
                 (provider->resource,
                  TIZEN_REMOTE_SURFACE_PROVIDER_VISIBILITY_TYPE_VISIBLE);
@@ -260,6 +265,9 @@ _remote_provider_visible_set(E_Comp_Wl_Remote_Provider *provider, Eina_Bool set)
         provider->vis_ref --;
         if (provider->vis_ref == 0)
           {
+             provider->ec->visibility.obscured = E_VISIBILITY_FULLY_OBSCURED;
+             e_policy_client_visibility_send(provider->ec);
+
              tizen_remote_surface_provider_send_visibility
                 (provider->resource,
                  TIZEN_REMOTE_SURFACE_PROVIDER_VISIBILITY_TYPE_INVISIBLE);