[PATCH] wl_shell: Add surface state changed event

Alexander Preisinger alexander.preisinger at gmail.com
Wed May 15 07:53:49 PDT 2013


Nice!



2013/5/15 Mikko Levonmaa <mikko.levonmaa at gmail.com>

> 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.
>
> 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"/>
>
Are these supposed to be flags? Like that it can send multiple states in
one request?
I think the client should keep track of the previous state itself and the
compositor only
sends the state he wants the client to have.


> +    </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/4b1836d9/attachment.html>


More information about the wayland-devel mailing list