I meant that it should *constrain* the behaviour of rotation - more or less like omnewrotate behaves now, but skipping over the two &#39;incorrect&#39; orientations.  <br><br>so if the app says &#39;landscape&#39;, it&#39;s still flip between xrandr -o 1 and xrandr -o 3 as you rotate the phone, but won&#39;t flip to xrandr -o 0 or xrandr -o 2.<br>
<br>I don&#39;t think it will normally makes sense for an application to specficially request &#39;xrandr -o 3&#39; - they will usually just want to be sure that they are displayed in portrait or landscape mode.<br><br>I&#39;ve been using epdfview a lot lately, and I&#39;d love to be able to constrain it to only show up in landscape mode...<br>
<br>Warren<br><br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 11:11 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">Warren Baird wrote:<br>
&gt; perhaps the landscape / portrait flag should just contrain the<br>
&gt; rotation?   So if you flip the phone 180 degrees, you get the<br>
&gt; &#39;expected&#39; behaviour, but if you just flip it 90 degrees nothing changes?<br>
<br>
</div>Given that these properties are for the orientation an application<br>
requests (to the WM) should ideally be used, I&#39;m not sure how the actual<br>
rotation would help?  Working from rotation would also complicate the<br>
behaviour on devices that are normally landscape - such as the Nokia N900.<br>
<br>
What I&#39;m suggesting is that the application just says &quot;landscape&quot; or<br>
&quot;portrait&quot;, and then the WM would decide the most appropriate way to<br>
orient the screen for that device.<br>
<br>
If an application doesn&#39;t request either landscape or portrait, then the<br>
WM would rotate the screen according to the device orientation, through<br>
each of the positions the device could be held (including inverted).  So<br>
the WM definitely needs to know the actual orientation of the device<br>
(such as from the FSO api), but I think the application itself only<br>
needs to request Landscape, Portrait or neither.<br>
<div><div></div><div class="h5"><br>
<br>
Dave<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>