When handle deferred rotation event by blocking rotation, send the request to rotate... 22/9722/1
authorShawn Lee <shiin.lee@samsung.com>
Sun, 23 Jun 2013 11:15:09 +0000 (20:15 +0900)
committerShawn Lee <shiin.lee@samsung.com>
Mon, 24 Jun 2013 08:18:25 +0000 (17:18 +0900)
Change-Id: Ifa7aee23d2450037c94c63f9fa85f4933502bb2d

src/bin/e_zone.c

index eb2727f..ad28784 100644 (file)
@@ -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;