From: Doyoun Kang Date: Fri, 14 Apr 2017 02:09:29 +0000 (+0900) Subject: rotation: check ec's rotating state before sending E_EVENT_CLIENT_ROTATION_CHANGE_BEG... X-Git-Tag: accepted/tizen/3.0/common/20170510.183013~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db675a6843ca2308d87944862ae6aa262ee340e8;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wm-policy.git rotation: check ec's rotating state before sending E_EVENT_CLIENT_ROTATION_CHANGE_BEGIN event There was a bug that the E_EVENT_CLIENT_ROTATION_CHANGE_BEGIN event is sent twice, but E_EVENT_CLIENT_ROTATION_CHANGE_CANCEL or E_EVENT_CLIENT_ROTATION_CHANGE_END is sent just once. Change-Id: Ica751c2e613d85ab13e2ac74556e4563af545477 --- diff --git a/src/rotation/e_mod_rotation_wl.c b/src/rotation/e_mod_rotation_wl.c index 640f996..dd054ab 100644 --- a/src/rotation/e_mod_rotation_wl.c +++ b/src/rotation/e_mod_rotation_wl.c @@ -1709,7 +1709,10 @@ e_client_rotation_set(E_Client *ec, int rotation) } eina_list_free(list); - _e_client_event_client_rotation_change_begin_send(ec); + if (e_client_rotation_is_progress(ec)) + { + _e_client_event_client_rotation_change_begin_send(ec); + } ec->e.state.rot.pending_change_request = 0; ec->e.state.rot.ang.next = rotation;