From d56a2f159c189b27361020d1cffc4a4382c9354c Mon Sep 17 00:00:00 2001 From: Hyunho Kang Date: Thu, 24 Nov 2016 17:03:15 +0900 Subject: Set default preferred rotation to 0 Some devices set all applications preferred rotation to 90 degree widget app sould not be rotated becasue viewer will be rotated Change-Id: I1ad6204423ee7845c4ccf21614fc8eaae246bc01 Signed-off-by: Hyunho Kang --- src/widget_app.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widget_app.c b/src/widget_app.c index 8898766..4ee4e2e 100755 --- a/src/widget_app.c +++ b/src/widget_app.c @@ -1362,6 +1362,7 @@ EXPORT_API int widget_app_get_elm_win(widget_context_h context, Ecore_Wl_Window *wl_win; struct wl_surface *surface; char buffer[256]; + int rots[3] = {0}; if (!_is_widget_feature_enabled()) { _E("not supported"); /* LCOV_EXCL_LINE */ @@ -1378,6 +1379,9 @@ EXPORT_API int widget_app_get_elm_win(widget_context_h context, goto fault; /* LCOV_EXCL_LINE */ } + elm_win_wm_rotation_preferred_rotation_set(ret_win, -1); + elm_win_wm_rotation_available_rotations_set(ret_win, rots, 1); + wl_win = elm_win_wl_window_get(ret_win); if (wl_win == NULL) { _E("failed to get wayland window"); /* LCOV_EXCL_LINE */ -- cgit v1.2.3