PR1.2 comes with autorotate window mode. SHould help in here a lot. Compositor will then handle the rotation in the manner user wants (default in pr1.2: kb open -> landscape always, otherwise, follow accelerometer like in the examples above) Beauty is that app doesn't need to care, it can just set the autorotate on and that's it.