<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 15, 2013 at 9:39 AM, Mikko Levonmaa <span dir="ltr"><<a href="mailto:mikko.levonmaa@gmail.com" target="_blank">mikko.levonmaa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This allows the shell to inform the surface that it has changed<br>
state, current supported states are default, minimized, maximized<br>
and fullscreen. The shell implementation is free to interpret the<br>
meaning for the state, i.e. the minimized might not always mean<br>
that the surface is fully hidden for example.<br></blockquote><div><br></div><div>We cannot simply have the shell telling clients it changed their state. The clients need to be in control of the state of each surface. This is because minimizing a client (for example) might not be as simple as hiding a specific window. Only the client can actually know how to minimize/maximize it.<br>
<br>Please read earlier min/max discussions or yesterday's IRC logs for more details.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Mikko Levonmaa <<a href="mailto:mikko.levonmaa@lge.com">mikko.levonmaa@lge.com</a>><br>
---<br>
protocol/wayland.xml | 15 +++++++++++++++<br>
1 files changed, 15 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/protocol/wayland.xml b/protocol/wayland.xml<br>
index 3bce022..ee7d32d 100644<br>
--- a/protocol/wayland.xml<br>
+++ b/protocol/wayland.xml<br>
@@ -874,6 +874,21 @@<br>
to the client owning the popup surface.<br>
</description><br>
</event><br>
+<br>
+ <enum name="state"><br>
+ <entry name="default" value="0"/><br>
+ <entry name="minimized" value="1"/><br>
+ <entry name="maximized" value="2"/><br>
+ <entry name="fullscreen" value="4"/><br>
+ </enum><br>
+<br>
+ <event name="state_changed"><br>
+ <description summary="The surface state was changed"><br>
+ The compositor or the user has taken action that has resulted in<br>
+ this surface to change state.<br>
+ </description><br>
+ <arg name="state" type="uint"/><br>
+ </event><br>
</interface><br>
<br>
<interface name="wl_surface" version="2"><br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.4.1<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div><br></div></div>