From: Yunjin Lee Date: Mon, 13 Feb 2017 01:43:29 +0000 (+0900) Subject: Support rotation changes X-Git-Tag: accepted/tizen/common/20170213.174642~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc76e3d98a2031aab841bf5cb321e20203ca0f0c;p=platform%2Fcore%2Fsecurity%2Faskuser.git Support rotation changes Change-Id: Iee413843a238779f37ee21177ddc46b380212d31 Signed-off-by: Yunjin Lee --- diff --git a/src/agent/notification-daemon/GuiRunner.cpp b/src/agent/notification-daemon/GuiRunner.cpp index c9de9f8..873a0d5 100644 --- a/src/agent/notification-daemon/GuiRunner.cpp +++ b/src/agent/notification-daemon/GuiRunner.cpp @@ -41,9 +41,9 @@ void GuiRunner::unfocused(void *data, Evas_Object *, void *) ALOGD("Unfocused"); GuiRunner *runner = static_cast(data); - if (runner->m_shouldRaise) + if (runner->m_shouldRaise) { evas_object_show(runner->m_win); - else { + } else { for (auto &fdCbData : runner->m_fdCbDataMap) { ecore_main_fd_handler_del(fdCbData.second.handler); } @@ -157,6 +157,11 @@ void GuiRunner::initialize() } efl_util_set_notification_window_level(m_win, EFL_UTIL_NOTIFICATION_LEVEL_DEFAULT); + if (elm_win_wm_rotation_supported_get(m_win)) { + int rots[4] = { 0, 90, 180, 270 }; + elm_win_wm_rotation_available_rotations_set(m_win, (const int *)(&rots), 4); + } + elm_win_autodel_set(m_win, EINA_TRUE); elm_win_override_set(m_win, EINA_TRUE); elm_win_alpha_set(m_win, EINA_TRUE);