summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2016-11-24 17:03:15 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2016-12-07 00:16:30 -0800
commitd56a2f159c189b27361020d1cffc4a4382c9354c (patch)
tree43ca36ea957865376f41e3ad2690c5a9a7dad88c
parent65326312013c0fe8f9b78f1e44f74a1ca2ccc02f (diff)
downloadappcore-widget-d56a2f159c189b27361020d1cffc4a4382c9354c.tar.gz
appcore-widget-d56a2f159c189b27361020d1cffc4a4382c9354c.tar.bz2
appcore-widget-d56a2f159c189b27361020d1cffc4a4382c9354c.zip
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-xsrc/widget_app.c4
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 */