Ideal screen rotation
Carsten Haitzler (The Rasterman)
raster at rasterman.com
Mon Nov 9 16:52:37 CET 2009
On Mon, 9 Nov 2009 15:49:24 +0000 Rui Miguel Silva Seabra <rms at 1407.org> said:
> On Mon, Nov 09, 2009 at 01:28:48PM +0100, Helge Hafting wrote:
> > >> But there is a problem. The user may switch between several apps with
> > >> different rotation needs. (xmahjongg needs landscape, tetris needs
> > >> portrait, ...) How will omnewrotate be notified about this?
> > >
> > > The proper way is to define a set of DBUS signals.
> > >
> > > Of course conflicting signals need to be ignored.
> > What conflicting signals? A proper implementation won't
> > have conflicts?
> app1 prefers landscape1
> app2 prefers landscape2
> app3 prefers portrait1
thats why i said
1. put it as properties on a window (you now know precisely which windows want
what - or dont care - 1 app can create more than 1 window remember)
2. the wm knows which windows are around doign what and their properties. it
can decide what to do. :)
> In such a system, while app1 will have to prevail and the others will have
> to wait.
> > There are no conflicts, but whatever software you have managing the
> > display must be able to change orientation at exactly the right moment.
> Of course you see, then, that rotation is a job best served by the Window
> Manager, yes? :)
> Daemons that rotate the screen (like my omnewrotate) are simpler hacks...
> Openmoko community mailing list
> community at lists.openmoko.org
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) raster at rasterman.com
More information about the community