From: Doyoun Kang Date: Mon, 9 Jan 2017 05:00:18 +0000 (+0900) Subject: rotation: modify code handling available/preferred angle X-Git-Tag: accepted/tizen/3.0/common/20170110.125405~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cca0decb89e7d2e6f3d62a7374345fb48c9d8c9;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wm-policy.git rotation: modify code handling available/preferred angle There was a bug that the E_EVENT_CLIENT_ROTATION_CHANGE_END event didn't invoke when window set the available/preferred angle to 90 or 270. So, indicator didn't change its contents to landscape mode. Change-Id: I55d5d6de228008caa5e192b6ada211abc5e13679 --- diff --git a/src/rotation/e_mod_rotation_wl.c b/src/rotation/e_mod_rotation_wl.c index 1e5460d..64e2969 100644 --- a/src/rotation/e_mod_rotation_wl.c +++ b/src/rotation/e_mod_rotation_wl.c @@ -319,12 +319,15 @@ _e_tizen_rotation_set_available_angles_cb(struct wl_client *client, EDBG(ec, "Send Change Rotation: angle %d for redering preparation of landscape only app", tz_angle); serial = wl_display_next_serial(e_comp_wl->wl.disp); + rot->angle_change_done = EINA_FALSE; + rot->prev_angle = rot->cur_angle; + rot->cur_angle = tz_angle; + rot->serial = serial; + EINA_LIST_FOREACH(rot->rotation_list, l, res) { tizen_rotation_send_angle_change(res, tz_angle, serial); } - - ec->e.state.rot.ang.curr = TIZEN_ROTATION_ANGLE_TO_INT(tz_angle); } } } @@ -374,12 +377,15 @@ _e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client, EDBG(ec, "Send Change Rotation: angle %d for redering preparation of landscape only app", tz_angle); serial = wl_display_next_serial(e_comp_wl->wl.disp); + rot->angle_change_done = EINA_FALSE; + rot->prev_angle = rot->cur_angle; + rot->cur_angle = tz_angle; + rot->serial = serial; + EINA_LIST_FOREACH(rot->rotation_list, l, res) { tizen_rotation_send_angle_change(res, tz_angle, serial); } - - ec->e.state.rot.ang.curr = TIZEN_ROTATION_ANGLE_TO_INT(tz_angle); } } }