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

2012-11-19 Thread Scott Moreau
On Mon, Nov 19, 2012 at 1:39 PM, Kristian Høgsberg wrote: > On Mon, Nov 19, 2012 at 12:10:09PM -0700, Scott Moreau wrote: > > On Mon, Nov 19, 2012 at 11:36 AM, Bill Spitzak > wrote: > > > > > Scott Moreau wrote: > > > > > > Because resize-from-center depends on knowing what edge was actually > >

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

2012-11-19 Thread Kristian Høgsberg
On Mon, Nov 19, 2012 at 12:10:09PM -0700, Scott Moreau wrote: > On Mon, Nov 19, 2012 at 11:36 AM, Bill Spitzak wrote: > > > Scott Moreau wrote: > > > > Because resize-from-center depends on knowing what edge was actually > >> clicked on, setting both left and right bits simultaneously means that

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

2012-11-19 Thread Scott Moreau
On Mon, Nov 19, 2012 at 11:36 AM, Bill Spitzak wrote: > Scott Moreau wrote: > > Because resize-from-center depends on knowing what edge was actually >> clicked on, setting both left and right bits simultaneously means that both >> left and right cases will be hit, and whichever sets the offset l

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

2012-11-19 Thread Bill Spitzak
Scott Moreau wrote: Because resize-from-center depends on knowing what edge was actually clicked on, setting both left and right bits simultaneously means that both left and right cases will be hit, and whichever sets the offset last, wins. You should be able to tell "which" edge by what sid

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

2012-11-17 Thread Scott Moreau
On Sat, Nov 17, 2012 at 4:41 AM, Scott Moreau wrote: > > > On Fri, Nov 16, 2012 at 5:32 PM, Kristian Høgsberg wrote: > >> On Thu, Nov 15, 2012 at 01:38:54PM -0700, Scott Moreau wrote: >> > On Thu, Nov 15, 2012 at 1:02 PM, Scott Moreau wrote: >> > >> > > >> > > >> > > On Thu, Nov 15, 2012 at 12:5

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

2012-11-17 Thread Scott Moreau
On Fri, Nov 16, 2012 at 5:32 PM, Kristian Høgsberg wrote: > On Thu, Nov 15, 2012 at 01:38:54PM -0700, Scott Moreau wrote: > > On Thu, Nov 15, 2012 at 1:02 PM, Scott Moreau wrote: > > > > > > > > > > > On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak > wrote: > > > > > >> A scheme I have seen is to

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

2012-11-16 Thread Kristian Høgsberg
On Thu, Nov 15, 2012 at 01:38:54PM -0700, Scott Moreau wrote: > On Thu, Nov 15, 2012 at 1:02 PM, Scott Moreau wrote: > > > > > > > On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak wrote: > > > >> A scheme I have seen is to use 15 (ie all 4 edge flags or'd) for > >> center-resize. This makes it pos

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

2012-11-15 Thread Scott Moreau
On Thu, Nov 15, 2012 at 1:02 PM, Scott Moreau wrote: > > > On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak wrote: > >> 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 |

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

2012-11-15 Thread Scott Moreau
On Thu, Nov 15, 2012 at 1:45 PM, Bill Spitzak wrote: > Scott Moreau wrote: > > Now that you mention it, I believe I have seen this used somewhere too >> and it makes sense. As a side note, the algorithm is always the same for >> resize-from-center regardless if it's horizontal, vertical or both.

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

2012-11-15 Thread Bill Spitzak
Scott Moreau wrote: Now that you mention it, I believe I have seen this used somewhere too and it makes sense. As a side note, the algorithm is always the same for resize-from-center regardless if it's horizontal, vertical or both. I was imagining "resize from center horizontal" would only mo

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

2012-11-15 Thread Scott Moreau
On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak wrote: > 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

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

2012-11-15 Thread Bill Spitzak
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.

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

2012-11-15 Thread Scott Moreau
--- 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 @@ + -- 1.7.