e_policy_wl: change aux hint name for decoration properties 27/291127/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 10 Apr 2023 06:46:50 +0000 (15:46 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 10 Apr 2023 07:59:32 +0000 (07:59 +0000)
We changed aux hint name related with client size decoration as below.
* E_Policy_Hint_Type
  - E_POLICY_HINT_RESIZE_HEADER_HEIGHT -> E_POLICY_HINT_DECORATION_SIZE_HEADER
  - E_POLICY_HINT_RESIZE_FOOTER_HEIGHT -> E_POLICY_HINT_DECORATION_SIZE_FOOTER
* hint_name
  - wm.policy.win.resize.header_height -> wm.policy.win.decoration.size.header
  - wm.policy.win.resize.footer_height -> wm.policy.win.decoration.size.footer

Change-Id: Iceb68af9d9fd6e116a779b96e4a11845e8b106b3

src/bin/e_policy_wl.c

index 3ba78ce05a87c93e2c30f503db491a4fe58580b2..4bb8397ca1a756c68e454480ce30175baedf1eb5 100644 (file)
@@ -276,8 +276,8 @@ enum _E_Policy_Hint_Type
    E_POLICY_HINT_TRANSIENT_FOR_ALWAYS_ON_TOP = 12,
    E_POLICY_HINT_BELONG_TO_PARENT = 13,
    E_POLICY_HINT_RESIZE_ASPECT_RATIO = 14,
-   E_POLICY_HINT_RESIZE_HEADER_HEIGHT = 15,
-   E_POLICY_HINT_RESIZE_FOOTER_HEIGHT = 16,
+   E_POLICY_HINT_DECORATION_SIZE_HEADER = 15,
+   E_POLICY_HINT_DECORATION_SIZE_FOOTER = 16,
    E_POLICY_HINT_VISIBILITY_IGNORE_GEOMETRY= 17,
    E_POLICY_HINT_RESIZE_PPU = 18,
 };
@@ -299,8 +299,8 @@ static const char *hint_names[] =
    "wm.policy.win.transient_for.always_on_top",
    "wm.policy.win.belong_to_parent",
    "wm.policy.win.resize_aspect_ratio",
-   "wm.policy.win.resize.header_height",
-   "wm.policy.win.resize.footer_height",
+   "wm.policy.win.decoration.size.header",
+   "wm.policy.win.decoration.size.footer",
    "wm.policy.win.visibility.ignore_geometry",
    "wm.policy.win.resize.ppu",
 };
@@ -2560,31 +2560,31 @@ _e_policy_wl_aux_hint_apply(E_Client *ec)
                   ec->manage_resize.enable_aspect_ratio = EINA_FALSE;
                }
           }
-        else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_HEADER_HEIGHT], strlen(hint->hint)))
+        else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_HEADER], strlen(hint->hint)))
           {
              int height = atoi(hint->val);
              if (height > 0)
                {
-                  ELOGF("RESIZE", "Set resize HEADER height.. h(%d)", ec, height);
+                  ELOGF("CSD", "Set decoration HEADER size.. size(%d)", ec, height);
                   ec->manage_resize.header_h = height;
                }
              else
                {
-                  ELOGF("RESIZE", "Unset resize HEADER height", ec);
+                  ELOGF("CSD", "Unset decoration HEADER size", ec);
                   ec->manage_resize.header_h = 0;
                }
           }
-        else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_FOOTER_HEIGHT], strlen(hint->hint)))
+        else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_FOOTER], strlen(hint->hint)))
           {
              int height = atoi(hint->val);
              if (height > 0)
                {
-                  ELOGF("RESIZE", "Set resize FOOTER height.. h(%d)", ec, height);
+                  ELOGF("CSD", "Set decoration FOOTER size.. size(%d)", ec, height);
                   ec->manage_resize.footer_h = height;
                }
              else
                {
-                  ELOGF("RESIZE", "Unset resize FOOTER height", ec);
+                  ELOGF("CSD", "Unset decoration FOOTER size", ec);
                   ec->manage_resize.footer_h = 0;
                }
           }