Add a gesture disable aux hint 88/65888/4 accepted/tizen/common/20160420.142004 accepted/tizen/ivi/20160421.011110 accepted/tizen/mobile/20160421.011239 accepted/tizen/tv/20160421.011132 accepted/tizen/wearable/20160421.011143 submit/tizen/20160420.081357
authorJengHyun Kang <jhyuni.kang@samsung.com>
Thu, 14 Apr 2016 00:50:43 +0000 (09:50 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 20 Apr 2016 07:13:44 +0000 (00:13 -0700)
Change-Id: I10b06f39993372f983a4f24a4313fcade0bc6864

src/e_mod_wl.c

index d360214..4ce6eb8 100644 (file)
@@ -168,6 +168,7 @@ enum _WM_Policy_Hint_Type
    WM_POLICY_HINT_DEICONIFY_APPROVE_DISABLE = 2,
    WM_POLICY_HINT_ICONIFY = 3,
    WM_POLICY_HINT_ABOVE_LOCKSCREEN = 4,
+   WM_POLICY_HINT_GESTURE_DISABLE = 5,
 };
 
 static const char *hint_names[] =
@@ -177,6 +178,7 @@ static const char *hint_names[] =
    "wm.policy.win.deiconify.approve.disable",
    "wm.policy.win.iconify",
    "wm.policy.win.above.lock",
+   "wm.policy.win.gesture.disable",
 };
 
 static void                _pol_wl_surf_del(Pol_Wl_Surface *psurf);
@@ -1951,6 +1953,17 @@ e_mod_pol_wl_eval_pre_post_fetch(E_Client *ec)
           {
              /* TODO: would implement after deiconify approve protocol provided */
           }
+        else if (!strcmp(hint->hint, hint_names[WM_POLICY_HINT_GESTURE_DISABLE]))
+          {
+             if (atoi(hint->val) == 1)
+               {
+                  ec->gesture_disable = EINA_TRUE;
+               }
+             else
+               {
+                  ec->gesture_disable = EINA_FALSE;
+               }
+          }
         else if (!strcmp(hint->hint, hint_names[WM_POLICY_HINT_ICONIFY]))
           {
              if (!strcmp(hint->val, "disable"))