[PATCH weston 3/9] shell: Install protocol for minimize, focus and close

Scott Moreau oreaus at gmail.com
Thu Mar 7 20:47:12 PST 2013


---
 protocol/desktop-shell.xml |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/protocol/desktop-shell.xml b/protocol/desktop-shell.xml
index 2fed660..51219d2 100644
--- a/protocol/desktop-shell.xml
+++ b/protocol/desktop-shell.xml
@@ -87,6 +87,18 @@
 	The shell can use this interface to receive surface information or make
 	requests for this surface.
     </description>
+    <request name="minimize">
+      <description summary="ask the compositor to minimize the surface"/>
+    </request>
+    <request name="unminimize">
+      <description summary="ask the compositor to unminimize the surface"/>
+    </request>
+    <request name="focus">
+      <description summary="ask the compositor to focus the surface"/>
+    </request>
+    <request name="close">
+      <description summary="ask the compositor to close the surface"/>
+    </request>
     <request name="destroy" type="destructor">
       <description summary="destroy surface request">
 	The shell must send this request in response to a gone event so	the
@@ -101,6 +113,14 @@
       <description summary="send the surface object title to the shell"/>
       <arg name="title" type="string"/>
     </event>
+    <event name="minimized">
+      <description summary="send the surface object minimize state to the shell"/>
+      <arg name="minimized" type="int"/>
+    </event>
+    <event name="focused">
+      <description summary="send the surface object focus state to the shell"/>
+      <arg name="focused" type="int"/>
+    </event>
     <event name="gone">
       <description summary="destroy surface notification">
 	The compositor should send this event to notify the shell that a
-- 
1.7.10.4



More information about the wayland-devel mailing list