e_mod_rotation_wl: fix bug for rotation pending show 97/274797/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 9 May 2022 13:31:09 +0000 (22:31 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 9 May 2022 13:32:23 +0000 (22:32 +0900)
commit87f39a36aee536cd893955dc7bef4c7b11d1f5e6
treec8de507a6c10e9624399746d40e4509333dff442
parent1fd3c76e27b024648deead2a8ba21e7875c35b7c
e_mod_rotation_wl: fix bug for rotation pending show

There was a bug that the window didn't show because the ec's e.state.rot.pending_show
was set.

Normal case:
1. receive a tizen_rotation_ack_angle_change request
2. receive a buffer change event
   ==> unset pending_show
3. show window

Abnormal case:
1. timeout occurs (couldn't receive a tizen_rotation_ack_angle_change request)
   ==> unset pending_show
2. show window forcely by timeout
   ==> set pending_show again
3. receive a tizen_rotation_ack_angle_change request
4. receive a buffer change event
   ==> can not unset pending_show
5. can not show window

So, we add code that call _e_tizen_rotation_angle_change function to clear internal
variables when a timeout occurs.

Change-Id: Id9f4f3bfcfae353a933e0d4652340245788c98c5
src/rotation/e_mod_rotation_wl.c