I meant that it should *constrain* the behaviour of rotation - more or less like omnewrotate behaves now, but skipping over the two 'incorrect' orientations. <br><br>so if the app says 'landscape', it's still flip between xrandr -o 1 and xrandr -o 3 as you rotate the phone, but won't flip to xrandr -o 0 or xrandr -o 2.<br>
<br>I don't think it will normally makes sense for an application to specficially request 'xrandr -o 3' - they will usually just want to be sure that they are displayed in portrait or landscape mode.<br><br>I've been using epdfview a lot lately, and I'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"><<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">Warren Baird wrote:<br>
> perhaps the landscape / portrait flag should just contrain the<br>
> rotation? So if you flip the phone 180 degrees, you get the<br>
> 'expected' 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'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'm suggesting is that the application just says "landscape" or<br>
"portrait", and then the WM would decide the most appropriate way to<br>
orient the screen for that device.<br>
<br>
If an application doesn'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>