From ad3b867fbf406b877e64274545d7ab68409e22ec Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Fri, 22 Jul 2016 16:52:09 +0900 Subject: [PATCH] rotation: should compare the angle between current and next whether or not it's different when process the deferred rotation. Change-Id: I674471dd4feabe2c10cc89e23c4b52061f586932 --- src/rotation/e_mod_rotation_wl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rotation/e_mod_rotation_wl.c b/src/rotation/e_mod_rotation_wl.c index 26e21b2..62cb63c 100644 --- a/src/rotation/e_mod_rotation_wl.c +++ b/src/rotation/e_mod_rotation_wl.c @@ -1135,7 +1135,8 @@ e_zone_rotation_block_set(E_Zone *zone, const char *name_hint, Eina_Bool set) { zone->rot.block_count = 0; - if (zone->rot.pending) + if ((zone->rot.pending) && + (zone->rot.curr != zone->rot.next)) { zone->rot.prev = zone->rot.curr; zone->rot.curr = zone->rot.next; @@ -1181,7 +1182,8 @@ e_zone_rotation_update_done(E_Zone *zone) zone->rot.wait_for_done = EINA_FALSE; if ((zone->rot.pending) && - (zone->rot.block_count == 0)) + (zone->rot.block_count == 0) && + (zone->rot.curr != zone->rot.next)) { zone->rot.prev = zone->rot.curr; zone->rot.curr = zone->rot.next; -- 2.7.4