Om2009 testing release 4

Carsten Haitzler (The Rasterman) raster at rasterman.com
Mon Jun 1 09:21:15 CEST 2009


On Mon, 25 May 2009 17:20:08 +0100 Rui Miguel Silva Seabra <rms at 1407.org> said:

> I'm sure it's not, AFAICT (since I don't know Parloi's internals) it doesn't
> touch anything Paroli or anything related to calls.
> 
> As for your problem with landscape vs portrait positions and GUIs... well,
> that's a problem that's not easy to solve unless all applications pay
> attention to a specific dbus signal which omnewrotate will send in the future.
> 
> This signal can be used by apps so they adjust their UI according to the
> display mode, but other than that, they all think they're in the same
> position.

no dbus signals needed. when x rotates,you'll get a configurenotify on root AND
an XRRScreenChangeNotifyEvent event (on root). These will also tell you your
orientation and new size. The WM, if smart, will resize your app window anyway,
so all you really need to do is, on resize, query x for the orientation, if
orientation matters. if it doesn't just adjusting to the new size is what you
should be doing anyway.


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com





More information about the community mailing list