[PATCH] wl_shell: Add surface state changed event

Jason Ekstrand jason at jlekstrand.net
Wed May 15 10:12:43 PDT 2013


On Wed, May 15, 2013 at 9:39 AM, Mikko Levonmaa <mikko.levonmaa at gmail.com>wrote:

> This allows the shell to inform the surface that it has changed
> state, current supported states are default, minimized, maximized
> and fullscreen. The shell implementation is free to interpret the
> meaning for the state, i.e. the minimized might not always mean
> that the surface is fully hidden for example.
>

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.

Please read earlier min/max discussions or yesterday's IRC logs for more
details.


> Signed-off-by: Mikko Levonmaa <mikko.levonmaa at lge.com>
> ---
>  protocol/wayland.xml |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/protocol/wayland.xml b/protocol/wayland.xml
> index 3bce022..ee7d32d 100644
> --- a/protocol/wayland.xml
> +++ b/protocol/wayland.xml
> @@ -874,6 +874,21 @@
>         to the client owning the popup surface.
>        </description>
>      </event>
> +
> +    <enum name="state">
> +      <entry name="default" value="0"/>
> +      <entry name="minimized" value="1"/>
> +      <entry name="maximized" value="2"/>
> +      <entry name="fullscreen" value="4"/>
> +    </enum>
> +
> +    <event name="state_changed">
> +      <description summary="The surface state was changed">
> +    The compositor or the user has taken action that has resulted in
> +    this surface to change state.
> +      </description>
> +      <arg name="state" type="uint"/>
> +    </event>
>    </interface>
>
>    <interface name="wl_surface" version="2">
> --
> 1.7.4.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130515/eaf41864/attachment.html>


More information about the wayland-devel mailing list