[PATCH wayland 1/2 v2] protocol: Add resize from center flag.

Bill Spitzak spitzak at gmail.com
Thu Nov 15 11:57:37 PST 2012


A scheme I have seen is to use 15 (ie all 4 edge flags or'd) for 
center-resize. This makes it possible to add 6 (left | right) for 
"center resize horizontally" and 3 (top | bottom) for "center resize 
vertically".

The only values from 1-15 that have no meaning are when 3 edges are 
selected.

Scott Moreau wrote:
> ---
> 
> v2:
> 
> No changes.
> 
>  protocol/wayland.xml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/protocol/wayland.xml b/protocol/wayland.xml
> index 4205dae..25fc3ae 100644
> --- a/protocol/wayland.xml
> +++ b/protocol/wayland.xml
> @@ -551,6 +551,7 @@
>        <entry name="right" value="8"/>
>        <entry name="top_right" value="9"/>
>        <entry name="bottom_right" value="10"/>
> +      <entry name="from_center" value="16"/>
>      </enum>
>  
>      <request name="resize">


More information about the wayland-devel mailing list