Due to we only can get focus_app_pid at X11 environment
through ecore API, in other environment like wayland,
we just return true, else it may lead the API failed to
work
Change-Id: I516eef6cb24601b092cc84cdb23b52dceec14d8c
LOGD("[check app permission] focus_app_pid [%d], current_app_pid [%d]",
focus_app_pid, current_app_pid);
+#ifdef HAVE_X11
if (-1 == current_app_pid)
return false;
else
return (focus_app_pid == current_app_pid) ? true : false;
+#endif
+
+ return true;
}
static int _return_invalid_param(const char *func)