perhaps the landscape / portrait flag should just contrain the rotation? So if you flip the phone 180 degrees, you get the 'expected' 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"><<a href="mailto:openmoko@underhand.org">openmoko@underhand.org</a>></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">> On Tue, Nov 10, 2009 at 12:00:31AM +0000, Dave Ball wrote:<br>
</div><div class="im">>> option1: New atoms in the _NET_WM_STATE property.<br>
>> - _NET_WM_STATE_LANDSCAPE<br>
>> - _NET_WM_STATE_PORTRAIT<br>
>><br>
>> If neither is present for a given window, WM can choose (based on<br>
>> the accelerometers). Both present is an error - or could be defined<br>
>> as leave the window in it's current orientation.<br>
>><br>
>> option2: New property.<br>
>><br>
>> _NET_WM_ORIENTATION<br>
>> 0 = Either / WM decides<br>
>> 1 = Landscape<br>
>> 2 = Portrait<br>
><br>
> 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's the use-case for an application requesting either of the<br>
inverted states? I can'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 "normal" 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>