Ideal screen rotation

Rui Miguel Silva Seabra rms at ansol.org
Tue Nov 10 10:23:33 CET 2009


On Tue, Nov 10, 2009 at 12:00:31AM +0000, Dave Ball wrote:
> Carsten Haitzler (The Rasterman) wrote:
> >wm needs to track both and determine which one takes precedence
> >based on policy and th en implement that rotation, if needed.
> >policy is what a wm implements - that's the nature of the beast.
> >that policy may be hard-coded in the wm or configuration for it.
> 
> I've been looking at existing window properties [1] to try and
> understand the best way to do this.
> 
> 
> option1: New atoms in the _NET_WM_STATE property.
>  - _NET_WM_STATE_LANDSCAPE
>  - _NET_WM_STATE_PORTRAIT
> 
> If neither is present for a given window, WM can choose (based on
> the accelerometers). Both present is an error - or could be defined
> as leave the window in it's current orientation.
> 
> 
> option2: New property.
> 
> _NET_WM_ORIENTATION
>  0 = Either / WM decides
>  1 = Landscape
>  2 = Portrait

There are two landscape positions and 2 portrait positions :)

Rui



More information about the community mailing list