diff options
author | Hyunho Kang <hhstark.kang@samsung.com> | 2016-11-24 17:03:15 +0900 |
---|---|---|
committer | Hyunho Kang <hhstark.kang@samsung.com> | 2016-12-07 00:16:30 -0800 |
commit | d56a2f159c189b27361020d1cffc4a4382c9354c (patch) | |
tree | 43ca36ea957865376f41e3ad2690c5a9a7dad88c | |
parent | 65326312013c0fe8f9b78f1e44f74a1ca2ccc02f (diff) | |
download | appcore-widget-d56a2f159c189b27361020d1cffc4a4382c9354c.tar.gz appcore-widget-d56a2f159c189b27361020d1cffc4a4382c9354c.tar.bz2 appcore-widget-d56a2f159c189b27361020d1cffc4a4382c9354c.zip |
Set default preferred rotation to 0submit/tizen_3.0/20161207.072901accepted/tizen/3.0/wearable/20161208.062700accepted/tizen/3.0/tv/20161208.062606accepted/tizen/3.0/mobile/20161208.062515accepted/tizen/3.0/ivi/20161208.062748accepted/tizen/3.0/common/20161208.153453
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 <hhstark.kang@samsung.com>
-rwxr-xr-x | src/widget_app.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |