From c5acb604a2dcc6c17759ac9b9a2f1f82466ec28d Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 28 Jun 2016 09:03:45 +0900 Subject: Fix the syspopup_create API - eff_util_set_notification_window_level() needs the "http://tizen.org/privilege/window.priority.set" privilege. Change-Id: Id380c3b7e509407ac4e1b6f165abe1a483d9530c Signed-off-by: Hwankyu Jhun --- include/syspopup.h | 1 + syspopup-app/org.tizen.syspopup-app.xml.in | 3 +++ syspopup/syspopup_wayland.c | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/syspopup.h b/include/syspopup.h index 371dd0c..0478d10 100755 --- a/include/syspopup.h +++ b/include/syspopup.h @@ -83,6 +83,7 @@ typedef struct _syspopup_handler syspopup_handler; * and set system popup properties based on system popup information DB.\n * system popup properties to be set : timeout, default action type, .... * + * @privilege %http://tizen.org/privilege/window.priority.set * @param[in] b bundle received by app_reset handler (included system popup name) * @param[in] handler user-supplied handler for handling system popup internal event. * @param[in] parent parent window created with elm_win_add. diff --git a/syspopup-app/org.tizen.syspopup-app.xml.in b/syspopup-app/org.tizen.syspopup-app.xml.in index 1fe95dc..6e21a3c 100755 --- a/syspopup-app/org.tizen.syspopup-app.xml.in +++ b/syspopup-app/org.tizen.syspopup-app.xml.in @@ -6,4 +6,7 @@ + + http://tizen.org/privilege/window.priority.set + diff --git a/syspopup/syspopup_wayland.c b/syspopup/syspopup_wayland.c index 89d46bb..fcfe26e 100644 --- a/syspopup/syspopup_wayland.c +++ b/syspopup/syspopup_wayland.c @@ -122,6 +122,7 @@ int wl_syspopup_reset(bundle *b) syspopup *sp; Ecore_Wl_Window *wl_win; efl_util_notification_level_e level; + int ret; popup_name = _syspopup_get_name_from_bundle(b); if (popup_name == NULL) @@ -145,7 +146,12 @@ int wl_syspopup_reset(bundle *b) ecore_wl_window_type_set(wl_win, ECORE_WL_WINDOW_TYPE_NOTIFICATION); level = __wl_syspopup_get_notification_level(info->prio); - efl_util_set_notification_window_level(sp->win, level); + ret = efl_util_set_notification_window_level(sp->win, level); + if (ret != EFL_UTIL_ERROR_NONE) { + _E("Failed to set notification window level - %d", ret); + return -1; + } + if (info->focus) ecore_wl_window_focus_skip_set(wl_win, EINA_TRUE); -- cgit v1.2.3