rotation: added missing pending zone rotation job. 31/117831/1
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 7 Mar 2017 14:25:49 +0000 (23:25 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 7 Mar 2017 14:25:49 +0000 (23:25 +0900)
The rotation module didn't handle well bunch of pending sensor
values when the LCD is turned on.

Change-Id: I64280c60a0ec4cf5b732dce91fea7908d74123e0

src/rotation/e_mod_rotation_wl.c

index e1ebabd..650f5cd 100644 (file)
@@ -853,6 +853,13 @@ _e_client_rotation_list_remove(E_Client *ec)
           {
              _e_client_rotation_change_done();
           }
+        /* handling pending zone rotation job */
+        else if ((eina_list_count(rot.list) == 0) &&
+                 (ec->zone->rot.wait_for_done) &&
+                 (ec->zone->rot.pending))
+          {
+             e_zone_rotation_update_done(ec->zone);
+          }
      }
    ec->e.state.rot.ang.next = -1;
    ec->changes.rotation = 0;