e_policy: Added interceptor for stack transient_for 57/94057/3
authorJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 27 Oct 2016 04:41:07 +0000 (13:41 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 2 Nov 2016 02:10:33 +0000 (19:10 -0700)
Change-Id: I628d15dd4079e0788eac61b103faa07b97d2ff76
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
src/bin/e_policy.c
src/bin/e_policy.h
src/bin/e_policy_stack.c

index a57bb59..5737a0f 100644 (file)
@@ -19,6 +19,7 @@ static int _e_policy_interceptors_delete = 0;
 E_Policy_Interceptor *_e_policy_interceptors[] =
 {
    [E_POLICY_INTERCEPT_LAUNCHSCREEN_OBJECT_SETUP] = NULL,
+   [E_POLICY_INTERCEPT_STACK_TRANSIENT_FOR] = NULL,
 };
 
 static Eina_List *handlers = NULL;
index aae1d83..905fcaa 100644 (file)
@@ -12,6 +12,7 @@ typedef struct _E_Policy_Interceptor E_Policy_Interceptor;
 typedef enum _E_Policy_Intercept_Point
 {
    E_POLICY_INTERCEPT_LAUNCHSCREEN_OBJECT_SETUP,
+   E_POLICY_INTERCEPT_STACK_TRANSIENT_FOR,
    E_POLICY_INTERCEPT_LAST,
 } E_Policy_Intercept_Point;
 
index 6d2f56c..8e59c66 100644 (file)
@@ -55,6 +55,17 @@ _e_policy_stack_transient_for_apply(E_Client *ec)
    int raise;
    E_Client *child, *top;
    Eina_List *l;
+   Eina_Bool intercepted = EINA_FALSE;
+
+   intercepted = e_policy_interceptor_call(E_POLICY_INTERCEPT_STACK_TRANSIENT_FOR,
+                                           ec);
+   if (intercepted)
+     {
+        ELOGF("TZPOL",
+              "Fetch for statck transient_for was successfully intercepted",
+              ec->pixmap, ec);
+        return;
+     }
 
    if (ec->parent->layer != ec->layer)
      {