<br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 1:02 PM, Scott Moreau <span dir="ltr"><<a href="mailto:oreaus@gmail.com" target="_blank">oreaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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".<br>


<br>
The only values from 1-15 that have no meaning are when 3 edges are selected.</blockquote></div><div><br>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.<br>
</div></div></blockquote><div><br>I was tinkering with this idea and I remember trying it and why it wont fit nicely here. We're using resize_from_center as a separate single bit flag because it's actually resize state. Trying to make it have the meaning you described while maintaining this real-time behavior would require much more invasive changes. The edge flags would have to be stored separately because we have to remember what edges were set before toggling resize-from-center. It's simpler all around to have a single separate flag than try to mix everything together and try to decipher how to handle it later.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>
 </div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
<br>
Scott Moreau wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
<br>
v2:<br>
<br>
No changes.<br>
<br>
 protocol/wayland.xml | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/protocol/wayland.xml b/protocol/wayland.xml<br>
index 4205dae..25fc3ae 100644<br>
--- a/protocol/wayland.xml<br>
+++ b/protocol/wayland.xml<br>
@@ -551,6 +551,7 @@<br>
       <entry name="right" value="8"/><br>
       <entry name="top_right" value="9"/><br>
       <entry name="bottom_right" value="10"/><br>
+      <entry name="from_center" value="16"/><br>
     </enum><br>
      <request name="resize"><br>
</blockquote>
</div></div></blockquote></div></div><br>
</blockquote></div><br>