e_mod_rotation_wl: add exception handle for rotation done ack 31/165231/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 27 Dec 2017 06:53:47 +0000 (15:53 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 27 Dec 2017 06:53:51 +0000 (15:53 +0900)
Rotation change event flows like below
   Server -> Client [PID:3564] tizen_rotation@39.angle_change with angle,serial
   Server <- Client [PID:3564] tizen_rotation@39.ack_angle_change with serial
BTW, issue happened once a client acks rotation_done ahead of event from server
serial number is initialized 0,and plus on every angle change event.
if arrival ack from client contains serial "0", it is not valid number.

Change-Id: I57d0eed5d109718df969c6bdbd7ba886cc01ce79

src/rotation/e_mod_rotation_wl.c

index 5a2ce2e..fd2ed77 100644 (file)
@@ -590,7 +590,7 @@ _e_tizen_rotation_ack_angle_change_cb(struct wl_client *client,
         TIZEN_ROTATION_ANGLE_TO_INT(rot->cur_angle),
         serial);
 
-   if (rot->serial == serial) // rotation success
+   if ((serial != 0) && (rot->serial == serial)) // rotation success
      {
         if (rot->angle_change_done)
           {