[PATCH wayland 5/8 v2] protocol: Add minimize/maximize protocol.

Scott Moreau oreaus at gmail.com
Wed Nov 14 23:37:04 PST 2012


In order for clients to notify the compositor that they wish to be minimized, a
minimize request is needed. This can be used to minimize the surface when a
user clicks the clients minimize button.

The compositor needs a way to tell clients to maximize and unmaximize their
surfaces. The desktop shell client can ask the compositor that a surface be
sent an (un)maximize event, in response to a panel button for example.

The compositor can minimize and unminimize surfaces but clients can only
request their surface be minimized. The client doesn't need to be involved
in a minimize action, unlike (un)maximize, it only needs a way to track its
minimize state and request to be minimized. This patch adds minimize and
unminimize protocol events for this purpose.
---
 protocol/wayland.xml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 6171670..4205dae 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -675,6 +675,13 @@
       <arg name="output" type="object" interface="wl_output" allow-null="true"/>
     </request>
 
+    <request name="set_minimized">
+      <description summary="request minimize">
+	A request from the client to notify the compositor that it wants to be
+	minimized.
+      </description>
+    </request>
+
     <request name="set_title">
       <description summary="set surface title">
       </description>
@@ -721,6 +728,33 @@
 	to the client owning the popup surface.
       </description>
     </event>
+
+    <event name="maximize">
+      <description summary="suggest maximize">
+	The maximize event is to signal to the client that it should become
+	maximized.
+      </description>
+    </event>
+
+    <event name="unmaximize">
+      <description summary="suggest unmaximize">
+	The unmaximize event is to signal to the client that it should become
+	unmaximized.
+      </description>
+    </event>
+
+    <event name="minimize">
+      <description summary="minimize notification">
+	The minimize event is to notify the client that it has been minimized.
+      </description>
+    </event>
+
+    <event name="unminimize">
+      <description summary="unminimize notification">
+	The unminimize event is to notify the client that it has been
+	unminimized.
+      </description>
+    </event>
   </interface>
 
   <interface name="wl_surface" version="1">
-- 
1.7.11.7



More information about the wayland-devel mailing list