From 1dde1247d433ae0539198adbdcbdd16aa01521d7 Mon Sep 17 00:00:00 2001 From: Shawn Lee Date: Sun, 23 Jun 2013 20:15:09 +0900 Subject: [PATCH] When handle deferred rotation event by blocking rotation, send the request to rotate about remaining element in rotation list. and set the value of wait_for_done, when handle deferred rotation event. Change-Id: Ifa7aee23d2450037c94c63f9fa85f4933502bb2d --- src/bin/e_zone.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index eb2727f..ad28784 100644 --- a/src/bin/e_zone.c +++ b/src/bin/e_zone.c @@ -1488,11 +1488,12 @@ e_zone_rotation_block_set(E_Zone *zone, const char *name_hint, Eina_Bool set) { zone->rot.block_count = 0; - e_border_rotation_list_clear(zone, (!zone->rot.pending)); + e_border_rotation_list_clear(zone, EINA_TRUE); if (zone->rot.pending) { zone->rot.prev = zone->rot.curr; zone->rot.curr = zone->rot.next; + zone->rot.wait_for_done = EINA_TRUE; zone->rot.pending = EINA_FALSE; ev = E_NEW(E_Event_Zone_Rotation_Change_Begin, 1); @@ -1537,6 +1538,7 @@ e_zone_rotation_update_done(E_Zone *zone) { zone->rot.prev = zone->rot.curr; zone->rot.curr = zone->rot.next; + zone->rot.wait_for_done = EINA_TRUE; zone->rot.pending = EINA_FALSE; E_Event_Zone_Rotation_Change_Begin *ev2; -- 2.7.4