From: Jihoon Kim Date: Tue, 6 Oct 2015 11:04:56 +0000 (+0900) Subject: Support rotation in wayland environment X-Git-Tag: accepted/tizen/mobile/20151007.081237~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F49101%2F1;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Support rotation in wayland environment Change-Id: I7cb29e28c7631cf8178147fa45037ab6137e8266 --- diff --git a/src/sclcoreui-efl.cpp b/src/sclcoreui-efl.cpp index bd1b0d2..81538d8 100644 --- a/src/sclcoreui-efl.cpp +++ b/src/sclcoreui-efl.cpp @@ -96,7 +96,10 @@ void CSCLCoreUIEFL::set_keyboard_size_hints(SclSize portrait, SclSize landscape) Evas_Object *main_window = NATIVE_WINDOW_CAST(m_main_window); #ifdef WAYLAND - evas_object_resize(main_window, portrait.width, portrait.height); + ecore_wl_window_rotation_geometry_set(elm_win_wl_window_get(main_window), 0, 0, 0, portrait.width, portrait.height); + ecore_wl_window_rotation_geometry_set(elm_win_wl_window_get(main_window), 90, 0, 0, landscape.height, landscape.width); + ecore_wl_window_rotation_geometry_set(elm_win_wl_window_get(main_window), 180, 0, 0, portrait.width, portrait.height); + ecore_wl_window_rotation_geometry_set(elm_win_wl_window_get(main_window), 270, 0, 0, landscape.height, landscape.width); #else ecore_x_e_window_rotation_geometry_set(elm_win_xwindow_get(main_window), 0, 0, 0, portrait.width, portrait.height); ecore_x_e_window_rotation_geometry_set(elm_win_xwindow_get(main_window), 90, 0, 0, landscape.height, landscape.width);