perhaps the landscape / portrait flag should just contrain the rotation?   So if you flip the phone 180 degrees, you get the &#39;expected&#39; behaviour, but if you just flip it 90 degrees nothing changes?<br><br>Warren<br>
<br><div class="gmail_quote">On Tue, Nov 10, 2009 at 7:08 AM, Dave Ball <span dir="ltr">&lt;<a href="mailto:openmoko@underhand.org">openmoko@underhand.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Rui Miguel Silva Seabra wrote:<br>
</div><div class="im">&gt; On Tue, Nov 10, 2009 at 12:00:31AM +0000, Dave Ball wrote:<br>
</div><div class="im">&gt;&gt; option1: New atoms in the _NET_WM_STATE property.<br>
&gt;&gt; - _NET_WM_STATE_LANDSCAPE<br>
&gt;&gt; - _NET_WM_STATE_PORTRAIT<br>
&gt;&gt;<br>
&gt;&gt; If neither is present for a given window, WM can choose (based on<br>
&gt;&gt; the accelerometers). Both present is an error - or could be defined<br>
&gt;&gt; as leave the window in it&#39;s current orientation.<br>
&gt;&gt;<br>
&gt;&gt; option2: New property.<br>
&gt;&gt;<br>
&gt;&gt; _NET_WM_ORIENTATION<br>
&gt;&gt; 0 = Either / WM decides<br>
&gt;&gt; 1 = Landscape<br>
&gt;&gt; 2 = Portrait<br>
&gt;<br>
&gt; There are two landscape positions and 2 portrait positions :)<br>
</div>Doh - of course!  Which would lead to:<br>
<br>
_NET_WM_STATE_ORIENTATION_LANDSCAPE<br>
_NET_WM_STATE_ORIENTATION_PORTRAIT<br>
_NET_WM_STATE_ORIENTATION_INVERTED<br>
<br>
or<br>
<div class="im"><br>
_NET_WM_ORIENTATION<br>
0 = Either / WM decides<br>
1 = Landscape<br>
2 = Portrait<br>
</div>3 = Landscape inverted<br>
4 = Portrait inverted<br>
<br>
However, what&#39;s the use-case for an application requesting either of the<br>
inverted states?  I can&#39;t see when those would be useful - in terms of<br>
hints the app would supply.<br>
<br>
Obviously, if the WM was deciding orientation based on the device<br>
position, you would correctly rotate to the inverted states, but if an<br>
application is built for portrait or landscape is there any reason a<br>
developer would not want the &quot;normal&quot; portrait/landscape orientation for<br>
the device?<br>
<font color="#888888"><br>
<br>
Dave<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Warren Baird - Photographer and Digital Artist<br><a href="http://www.synergisticimages.ca">http://www.synergisticimages.ca</a><br>