From 24e8c1c93555d376e05d19bedf729590bac90d73 Mon Sep 17 00:00:00 2001 From: Juyeon Lee Date: Fri, 22 Dec 2017 11:56:13 +0900 Subject: [PATCH] ecore_evas_wayland: support WM Rotation interface for wayland tizen_policy_ext, tizen_rotation binded clients are available to supports Change-Id: I05c1727a9c38e119230fae9818cce7a713d3ea06 --- .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 87b6ef4..829b1f0 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -3467,13 +3467,15 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, unsigned int parent, i goto eng_err; } - _ecore_evas_wl_common_wm_rotation_protocol_set(ee); + // TIZEN_ONLY(20161228) : tizen_rotation v2 + if (wdata->win) + ecore_wl2_window_rotation_changed_callback_set + (wdata->win, ee, _ecore_evas_wl_common_wm_rot_cb_angle_changed); + if (ewd->wl.tz_policy_ext) + ecore_wl2_window_wm_rotation_supported_set(wdata->win, EINA_TRUE); + // -// TIZEN_ONLY(20161228) : tizen_rotation v2 - if (wdata->win) - ecore_wl2_window_rotation_changed_callback_set - (wdata->win, ee, _ecore_evas_wl_common_wm_rot_cb_angle_changed); -// + _ecore_evas_wl_common_wm_rotation_protocol_set(ee); _ecore_evas_register(ee); ecore_evas_input_event_register(ee); -- 2.7.4