[PATCH 1/2] Add to output protocol to allow rotate/resize

Benjamin Franzke benjaminfranzke at googlemail.com
Fri Apr 29 00:43:53 PDT 2011


2011/4/29 Casey Dahlin <cdahlin at redhat.com>:
> Adds some parameters to the output geometry event. Also adds a move method to
> change those parameters.
> ---
>  protocol/wayland.xml |   15 ++++++++++++---
>  1 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/protocol/wayland.xml b/protocol/wayland.xml
> index 11976fa..187e961 100644
> --- a/protocol/wayland.xml
> +++ b/protocol/wayland.xml
> @@ -446,12 +446,21 @@
>        published as global during start up, or when a screen is hot
>        plugged.  -->
>   <interface name="wl_output" version="1">
> -    <!-- Notification about the screen size. -->
> +    <!-- Move or rotate this output's area -->
> +    <request name="move">
> +      <arg name="x" type="int"/>
> +      <arg name="y" type="int"/>
> +      <arg name="transform_flags" type="uint"/>
> +    </request>

I think we need a general debate first, about how to grant permission
to only specific clients to change output configuration.
Or even not making it part of the main protocol at all, just being an
extension or so.
We might not want every application to have control of these things.

> +
> +    <!-- Notification about the screen size, rotation, and applied
> +        transformations. -->
>     <event name="geometry">
>       <arg name="x" type="int"/>
>       <arg name="y" type="int"/>
> -      <arg name="width" type="int"/>
> -      <arg name="height" type="int"/>
> +      <arg name="transform_flags" type="uint"/>
> +      <arg name="width" type="uint"/>
> +      <arg name="height" type="uint"/>
>     </event>
>   </interface>

Why changing the width and height datatype within this patch?
That would be another patch. But Kristian denied that somewhen already.

>
> --
> 1.7.5
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list