Closed
Description
Problem
- When the device is rotated, an animation of rotating the window should occur but it doesn't
- After the device is rotated, the keyboard should also be positioned correctly but it doesn't.
As-is
Expected(android)
Details
To solve these problems, I tried setting available rotation degrees on the window.
ecore_wl2_window_available_rotations_set
If you use the above API and you rotate the actual device, you can see that the window is also rotated according to the device orientation with an appropriate rotating animation. the keyboard is positioned also correctly.
But after that, the screen looks frozen.
*If you are using the scrollable sample app, you can easily see that the screen is frozen after rotating the device with the above API.
I tried the following to analyze and to solve the problem, but it didn't work.
- Remove gl surface transformation
- The screen may appear partially frozen. when pause-resume occurs, nothing will be shown(black screen).
- After the device is rotated, re-create egl window surface after device rotated on the render thread
- If you create a surface and clear the surface with any color, you can see that color momentarily. // It's natural.
- However, once a rotation occurs, you can not see that color anymore. // this is very weird.
- After the device is rotated, re-create wl2 window and egl window surface on the render thread
- Create wl_egl_window* from Ecore_Wl2_Window and use it to create egl window surface
Please let me know if you know anything about this.