static int __default_width;
static int __default_height;
static screen_connector_toolkit_evas_h __toolkit;
+static screen_connector_toolkit_evas_h __rid_toolkit;
static Evas_Object *__win;
static char *__watch_appid;
GQueue *__pending_queue;
static int __change_viewer_visibility(int visibility, bool update_cur_state);
-static int __change_visibility(bool visible);
+static int __change_visibility(int visibility);
static GDBusConnection *__gdbus_conn;
static guint __lcd_subscribe_id;
ecore_evas_manual_render_set(ee, EINA_FALSE);
LOGI("set manual false");
- auto_visibility = screen_connector_toolkit_evas_auto_visibility(__toolkit);
- if (auto_visibility == VISIBILITY_TYPE_PARTIALLY_OBSCURED ||
- auto_visibility == VISIBILITY_TYPE_UNOBSCURED)
- __change_visibility(true);
- else
- __change_visibility(false);
+ if (__toolkit) {
+ auto_visibility =
+ screen_connector_toolkit_evas_auto_visibility(__toolkit);
+ __change_visibility(auto_visibility);
+ LOGI("send visibility %d", auto_visibility);
+ } else if (__rid_toolkit) {
+ auto_visibility =
+ screen_connector_toolkit_evas_auto_visibility(__rid_toolkit);
+ __change_visibility(auto_visibility);
+ LOGI("send visibility %d", auto_visibility);
+ }
__manual_render = false;
}
_E("Fail screen_connector_toolkit_evas_add_by_rid");
return -1;
}
+ __rid_toolkit = handle;
if (__watch_appid) {
free(__watch_appid);
return __change_viewer_visibility(AUL_SCREEN_STATUS_PAUSE, true);
}
-static int __change_visibility(bool visible)
+static int __change_visibility(int visibility)
{
Evas_Object *image;
return -1;
}
- if (visible) {
- return screen_connector_toolkit_evas_send_visibility(image,
- VISIBILITY_TYPE_UNOBSCURED);
- } else {
- return screen_connector_toolkit_evas_send_visibility(image,
- VISIBILITY_TYPE_FULLY_OBSCURED);
- }
+ return screen_connector_toolkit_evas_send_visibility(image, visibility);
}
API int watch_manager_pause(void)
{
- return __change_visibility(false);
+ return __change_visibility(VISIBILITY_TYPE_FULLY_OBSCURED);
}
API int watch_manager_resume(void)
{
- return __change_visibility(true);
+ return __change_visibility(VISIBILITY_TYPE_UNOBSCURED);
}
API int watch_manager_window_bind(Evas_Object *win)