[maemo-developers] Howto enable portrait mode support on Fremantle
From: Alberto Garcia agarcia at igalia.comDate: Fri Aug 21 16:53:53 EEST 2009
- Previous message: Howto enable portrait mode support on Fremantle
- Next message: Howto enable portrait mode support on Fremantle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Aug 21, 2009 at 02:53:01PM +0200, Cornelius Hald wrote: I'll try to summarize how it works (I'm adding Kimmo to Cc in case I'm forgetting something, as the rotating itself is done by the desktop, libhildon only sets a WM hint). Let's suppose we open a new window. Before we open that window the device might already be in portrait mode. If the portrait flags of the new window are: 1) No flags -> The screen is rotated to landscape mode. 2) _SUPPORT -> The screen keeps its orientation. 3) _SUPPORT + _REQUEST -> The screen is rotated to portrait mode 4) _REQUEST alone -> I don't think we're using that. Kimmo? To detect whether a device is physically rotated I think you need to use the DBus API already mentioned in this thread. In other words: using this API alone won't change the orientation of the screen when the device is physically rotated, am I right Kimmo? Berto
- Previous message: Howto enable portrait mode support on Fremantle
- Next message: Howto enable portrait mode support on Fremantle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]