Mir

Comment 0 for bug 1382209

Revision history for this message
Sylvain Becker (sylvain-becker) wrote : [Enhancement] Add an API to lock screen orientation

Sometimes, applications are written to take advantage of the entire surface of screen. So they need a way to tell MIR, the screen orientation they want for drawing themselves. This can be portrait for some, landscape for others, or even combinations.
Without this feature, portrait application get distorted when running in a landscape oriented device.

So, it would be nice to have an API, in MIR client, to precisely lock the orientation of the screen.

My use case is a full-screen game, that require always Portrait Orientation. (Another full-screen game that requires always Landscape).

Better (future):
- allow this even for non full-screen applications
- allow combination like Portait+PortraitUpsideDown, or LandscapeLeft+LandscapeRight
- allow to change the orientation when the application run (so not only when creating/requesting the surface).

Remarks :
- touch event may need to be translated into the correct frame!