}
}
-static gboolean __force_resume_cb(gpointer data)
-{
- watch_manager_resume();
- return G_SOURCE_REMOVE;
-}
-
-static void __obj_move_cb(void *data, Evas *e, Evas_Object *obj,
- void *event_info)
-{
- if (__watch_is_visible() && __lcd_is_on()) {
- _I("Move manual render");
- /*
- If force_resume is true, it will make resume status for Viewer/Watchface both.
- If force_resume is false, it will resume Watchface only when Viewer is on resume status.
- Viewer can move watch object on background. So just pass false, leave Viewer decide resume status of watchface
- */
- __manual_render_start(false);
- g_idle_add(__force_resume_cb, NULL);
- }
-}
-
static Eina_Bool __window_on_pre_visibility(void *data, int type, void *event)
{
Ecore_Wl2_Event_Window_Pre_Visibility_Change *ev = event;
_D("w: %d, h: %d, x: %d y: %d", w, h, x, y);
evas_object_smart_callback_call(__win, WATCH_SMART_SIGNAL_ADDED, image);
evas_object_data_set(__win, "tbm,watch", image);
- evas_object_event_callback_add(image, EVAS_CALLBACK_MOVE,
- __obj_move_cb, image);
screen_connector_toolkit_evas_get_rid(image, (int *)&__watch_rid);
__flush_pending_queue(__watch_rid);
__change_viewer_visibility(__viewer_visibility, false);
_D("obj(%p) removed", image);
evas_object_smart_callback_call(__win, WATCH_SMART_SIGNAL_REMOVED, image);
- evas_object_event_callback_del_full(image, EVAS_CALLBACK_MOVE,
- __obj_move_cb, image);
cur_image = evas_object_data_get(__win, "tbm,watch");
if (cur_image == image) {
evas_object_data_set(__win, "tbm,watch", NULL);