summaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-14 22:00:20 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-12 21:56:35 +0300
commit401773a463992f926086b178caff14dd55dbd148 (patch)
treee9bbcd1dcca6d3090cff6266b50ec03fd4ea08c0 /protocol
parent795eb91d057b491011594162b402543c525d6545 (diff)
protocol: agl-shell-desktop: Send notification for application state change
The events are sent straight after the activation took place. The state changes are the surface role (for instance, pop-up) and the activate/de-activate type of event. With that information there's also a string type of data which can be used as easy way to forward data. Note that this isn't the proper way for applications to communicate with each other, but merely as a convenient way to pass data from one application to another. In order to hang-off the data, the 'activate_app' request also got an additional argument which is relayed back with the event. Bug-AGL: SPEC-3269 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I0c9be86f6ff227b59271cac1c060563b5aac9b6c
Diffstat (limited to 'protocol')
-rw-r--r--protocol/agl-shell-desktop.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/protocol/agl-shell-desktop.xml b/protocol/agl-shell-desktop.xml
index 6d53f92..05a3725 100644
--- a/protocol/agl-shell-desktop.xml
+++ b/protocol/agl-shell-desktop.xml
@@ -37,6 +37,11 @@
<entry name="fullscreen" value="1"/>
</enum>
+ <enum name="app_state">
+ <entry name="activated" value="0"/>
+ <entry name="deactivated" value="1"/>
+ </enum>
+
<event name="application">
<description summary="advertise application id">
The compositor may choose to advertise one or more application ids which
@@ -58,6 +63,7 @@
description of app_id.
</description>
<arg name="app_id" type="string"/>
+ <arg name="app_data" type="string" allow-null="true"/>
<arg name="output" type="object" interface="wl_output"/>
</request>
@@ -92,5 +98,16 @@
</description>
<arg name="app_id" type="string"/>
</request>
+
+ <event name="state_app">
+ <description summary="event sent when application has suffered state modification">
+ Notifies application(s) when other application have suffered state modifications.
+ </description>
+ <arg name="app_id" type="string"/>
+ <arg name="app_data" type="string" allow-null="true"/>
+ <arg name="state" type="uint" enum="app_state"/>
+ <arg name="role" type="uint" enum="app_role"/>
+ </event>
+
</interface>
</protocol>