rotation: Update the value of rotation of client only available landscape. 39/77839/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 1 Jul 2016 08:36:18 +0000 (17:36 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Fri, 1 Jul 2016 08:36:18 +0000 (17:36 +0900)
Change-Id: I6e75d3159f529c8ff6cd67c0c807a4c6ad0f3af7

src/rotation/e_mod_rotation_wl.c

index 8792fff..2539f4f 100644 (file)
@@ -225,6 +225,8 @@ _e_tizen_rotation_set_available_angles_cb(struct wl_client *client,
                {
                   tizen_rotation_send_angle_change(res, tz_angle, serial);
                }
+
+             ec->e.state.rot.ang.curr = TIZEN_ROTATION_ANGLE_TO_INT(tz_angle);
           }
      }
 }
@@ -278,6 +280,8 @@ _e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client,
                {
                   tizen_rotation_send_angle_change(res, tz_angle, serial);
                }
+
+             ec->e.state.rot.ang.curr = TIZEN_ROTATION_ANGLE_TO_INT(tz_angle);
           }
      }
 }