e_mod_rotation_wl: add cond. for landscape prefer app 15/218115/3
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 19 Nov 2019 09:42:22 +0000 (18:42 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 19 Nov 2019 12:04:46 +0000 (21:04 +0900)
the early angle change event should be sent for landscape prefer(90|270) app
but by the commit 625eaefe2674950f4c3337703c48c0a29966481a
if preferred_angle is 0 or 180 but tizen_rotation ver 1,
it may send angle_change_with_resize event

Change-Id: I4e65f325e71f0bfd29e3cd15933811f7a9902fef

src/rotation/e_mod_rotation_wl.c

index ce40b8a..c1855f5 100644 (file)
@@ -544,7 +544,7 @@ _e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client,
                        ec->e.state.rot.preferred_rot = TIZEN_ROTATION_ANGLE_TO_INT(angle);
                        return;
                     }
-                  else
+                  else if ((tz_angle == TIZEN_ROTATION_ANGLE_90) || (tz_angle == TIZEN_ROTATION_ANGLE_270))
                     {
                        EDBG(ec, "Send Change Rotation: angle %d for rendering preparation of landscape mode only app. mapped:%d serial:%u",
                             tz_angle, ec->first_mapped, serial);