e_policy: expose allow user geometry set function 85/82585/1 accepted/tizen/common/20160805.125802 accepted/tizen/ivi/20160805.001730 accepted/tizen/mobile/20160805.001647 accepted/tizen/tv/20160805.001703 accepted/tizen/wearable/20160805.001715 submit/tizen/20160804.110307
authorMinJeong Kim <minjjj.kim@samsung.com>
Thu, 4 Aug 2016 10:02:45 +0000 (19:02 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Thu, 4 Aug 2016 10:02:57 +0000 (19:02 +0900)
Change-Id: I80e1d98d2ba69824b1534f32a3d7fe2bf7bfef11
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_policy.c
src/bin/e_policy.h

index dec1667879d138b66da6586dcd4064a34f965753..9020702ea44a84d8a49bd82b1c5480b81e292ae5 100644 (file)
@@ -1009,47 +1009,6 @@ _e_policy_cb_idle_enterer(void *data EINA_UNUSED)
    return ECORE_CALLBACK_RENEW;
 }
 
-void
-e_policy_allow_user_geometry_set(E_Client *ec, Eina_Bool set)
-{
-   E_Policy_Client *pc;
-
-   if (EINA_UNLIKELY(!ec))
-     return;
-
-   pc = eina_hash_find(hash_policy_clients, &ec);
-   if (EINA_UNLIKELY(!pc))
-     return;
-
-   if (set) pc->user_geom_ref++;
-   else     pc->user_geom_ref--;
-
-   if (pc->user_geom_ref == 1 && !pc->allow_user_geom)
-     {
-        pc->allow_user_geom = EINA_TRUE;
-
-        if (!e_policy_client_is_noti(ec))
-          {
-             ec->netwm.type = E_WINDOW_TYPE_UTILITY;
-             ec->lock_client_location = EINA_FALSE;
-          }
-
-        ec->lock_client_size = EINA_FALSE;
-        ec->placed = 1;
-        EC_CHANGED(ec);
-     }
-   else if (pc->user_geom_ref == 0 && pc->allow_user_geom)
-     {
-        pc->allow_user_geom = EINA_FALSE;
-
-        ec->lock_client_location = EINA_TRUE;
-        ec->lock_client_size = EINA_TRUE;
-        ec->placed = 0;
-        ec->netwm.type = E_WINDOW_TYPE_NORMAL;
-        EC_CHANGED(ec);
-     }
-}
-
 void
 e_policy_desk_add(E_Desk *desk)
 {
@@ -1435,6 +1394,47 @@ e_policy_interceptor_del(E_Policy_Interceptor *pi)
      _e_policy_interceptors_delete++;
 }
 
+E_API void
+e_policy_allow_user_geometry_set(E_Client *ec, Eina_Bool set)
+{
+   E_Policy_Client *pc;
+
+   if (EINA_UNLIKELY(!ec))
+     return;
+
+   pc = eina_hash_find(hash_policy_clients, &ec);
+   if (EINA_UNLIKELY(!pc))
+     return;
+
+   if (set) pc->user_geom_ref++;
+   else     pc->user_geom_ref--;
+
+   if (pc->user_geom_ref == 1 && !pc->allow_user_geom)
+     {
+        pc->allow_user_geom = EINA_TRUE;
+
+        if (!e_policy_client_is_noti(ec))
+          {
+             ec->netwm.type = E_WINDOW_TYPE_UTILITY;
+             ec->lock_client_location = EINA_FALSE;
+          }
+
+        ec->lock_client_size = EINA_FALSE;
+        ec->placed = 1;
+        EC_CHANGED(ec);
+     }
+   else if (pc->user_geom_ref == 0 && pc->allow_user_geom)
+     {
+        pc->allow_user_geom = EINA_FALSE;
+
+        ec->lock_client_location = EINA_TRUE;
+        ec->lock_client_size = EINA_TRUE;
+        ec->placed = 0;
+        ec->netwm.type = E_WINDOW_TYPE_NORMAL;
+        EC_CHANGED(ec);
+     }
+}
+
 E_API void
 e_policy_deferred_job(void)
 {
index bdb75546bd9c4490b816547192f58099b3e387e3..5bf789a2f5e2c8560c25a1089aa371b0fa19c052 100644 (file)
@@ -104,7 +104,6 @@ extern E_Policy_System_Info e_policy_system_info;
 
 EINTERN E_Policy_Config_Desk *e_policy_conf_desk_get_by_nums(E_Policy_Config *conf, unsigned int zone_num, int x, int y);
 EINTERN E_Policy_Client      *e_policy_client_get(E_Client *ec);
-EINTERN void                  e_policy_allow_user_geometry_set(E_Client *ec, Eina_Bool set);
 EINTERN void                  e_policy_desk_add(E_Desk *desk);
 EINTERN void                  e_policy_desk_del(E_Policy_Desk *pd);
 EINTERN E_Policy_Client      *e_policy_client_launcher_get(E_Zone *zone);
@@ -157,6 +156,7 @@ E_API void      e_policy_aux_message_send(E_Client *ec, const char *key, const c
 E_API E_Policy_Interceptor *e_policy_interceptor_add(E_Policy_Intercept_Point ipoint, E_Policy_Intercept_Cb func, const void *data);
 E_API void                  e_policy_interceptor_del(E_Policy_Interceptor *pi);
 
+E_API void e_policy_allow_user_geometry_set(E_Client *ec, Eina_Bool set);
 E_API void e_policy_deferred_job(void);
 E_API int  e_policy_init(void);
 E_API int  e_policy_shutdown(void);