summaryrefslogtreecommitdiffstats
path: root/protocol/agl-shell-desktop.xml
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-06 14:19:31 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-12 18:30:16 +0000
commitab151e5d3d10f85901c0a9b689ef62e83c7dbc5e (patch)
treea9eafde9733622680670baf0ea56baef24267a9a /protocol/agl-shell-desktop.xml
parent63b6b6b1e140e0abb3bcc6b706ba7a57b5fceb04 (diff)
agl-shell-desktop: Allow to set role properties for the application
This extends the agl-shell-desktop protocol with a new request that allows to set further properties on the window/client. Bug-AGL: SPEC-3269 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ia88e23c8c1cbc55c5423de480bba7f86c79897d0
Diffstat (limited to 'protocol/agl-shell-desktop.xml')
-rw-r--r--protocol/agl-shell-desktop.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/protocol/agl-shell-desktop.xml b/protocol/agl-shell-desktop.xml
index 1347063..28b2756 100644
--- a/protocol/agl-shell-desktop.xml
+++ b/protocol/agl-shell-desktop.xml
@@ -32,6 +32,11 @@
no mechanism to place to restrict or limit that.
</description>
+ <enum name="app_role">
+ <entry name="popup" value="0"/>
+ <entry name="fullscreen" value="1"/>
+ </enum>
+
<event name="application">
<description summary="advertise application id">
The compositor may choose to advertise one or more application ids which
@@ -55,5 +60,21 @@
<arg name="app_id" type="string"/>
<arg name="output" type="object" interface="wl_output"/>
</request>
+
+ <request name="set_app_property">
+ <description summary="set properties for a client identified by app_id">
+ Ask the compositor to make a toplevel obey the app_role and, depending
+ on the role, to use the the x and y values as initial positional values.
+ The x and y values would only make sense for certain roles.
+
+ See xdg_toplevel.set_app_id from the xdg-shell protocol for a
+ description of app_id.
+ </description>
+ <arg name="app_id" type="string"/>
+ <arg name="role" type="uint" enum="app_role"/>
+ <arg name="x" type="int"/>
+ <arg name="y" type="int"/>
+ <arg name="output" type="object" interface="wl_output"/>
+ </request>
</interface>
</protocol>