nemomobile-ux/main

Orientation doesn't work correctly

Opened this issue · 2 comments

There are many places where

  • the orientation sensor returns orientation. The value could be seen in glacier-testtool.
  • there is a part of code in lipstick/glacier-home which affects orientation of the whole ui
  • the application window could have orientation independent on the lipstick (compositor). The application could allow only portrait orientation. This is handled in qtquick-controls-nemo in ApplicationWindow component.
    • glacier-browser have enabled all orientations
    • fingerterm have also all orientations, but it is non-glacier application, so it behaves differently
  • The lipstick renders either whole application or thumbnail in task switcher. The orientation of thumbnail should remain the same until application enters again full screen mode
  • there is a settings in glacier-settings to get the locked orientation in portrait/landscape or dynamic i.e. sensor based orientation.
  • Additionally, the maliit keyboard is overlay "window" which renders over other applications. It must detect in which orientation will be keyboard rendered. Currently, incorrect orientation is used
  • The qtquick-controls-nemo ApplicationWindow component adjusts size of "effective" window area according to expected keyboard position.

It is not very clear which parts are working correctly.

index

There is also issue when running app windowed in other window manager:

  • incorrect dimensions of window
  • content rotation is up side down

Screenshot_Manjaro_2022-07-22_11:42:53

Here is another example of orientation issues
https://www.youtube.com/watch?v=x1oJUZbNSNw