tizen_policy: add requests for setting transient_for_below/parent_with_below 24/261324/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 15 Jul 2021 08:47:36 +0000 (17:47 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 15 Jul 2021 08:55:46 +0000 (17:55 +0900)
We add requests as below in tizen_policy.
  - set_transient_for_below
  - set_parent_with_below

These requests make relationship between windows as a parent and a child.
And the child is always under the parent.
This is different from set_transient_for and set_parent.

Change-Id: Ic5166d6364b45457e29ac8828319d0ba15eba380

protocol/tizen/tizen-extension.xml

index c9232d5..5dbc7ed 100644 (file)
@@ -19,7 +19,7 @@
     </event>
   </interface>
 
-  <interface name="tizen_policy" version="8">
+  <interface name="tizen_policy" version="9">
     <request name="get_visibility">
       <arg name="id" type="new_id" interface="tizen_visibility" summary="new visibility object"/>
       <arg name="surface" type="object" interface="wl_surface" summary="surface object"/>
       <arg name="surface" type="object" interface="wl_surface" summary="surface object"/>
     </request>
 
+    <request name="set_transient_for_below" since="9">
+      <description summary="set transient_for and place under the transient_for parent">
+         This makes a relationship between parent and child. A child is always placed under a parent.
+      </description>
+      <arg name="child_id" type="uint" />
+      <arg name="parent_id" type="uint" />
+    </request>
+
+    <request name="set_parent_with_below" since="9">
+      <description summary="set parent and place under the parent">
+         This makes a relationship between parent and child. A child is always placed under a parent.
+      </description>
+      <arg name="child" type="object" interface="wl_surface" />
+      <arg name="parent" type="object" interface="wl_surface" />
+    </request>
   </interface>
 
   <interface name="tizen_visibility" version="5">