_D("show %d %d", (unsigned int)ev->win, (unsigned int)ev->data[0]);
- __do_app(WE_RESUME, &priv, NULL);
+ if (priv.viewer_visibility == AUL_SCREEN_STATUS_RESUME)
+ __do_app(WE_RESUME, &priv, NULL);
+ else
+ _D("viewer is not resumed, do not resume watch");
return ECORE_CALLBACK_RENEW;
}
bundle *kb = NULL;
char *width_str = NULL;
char *height_str = NULL;
+ char *viewer_visibility_str = NULL;
int width = 360;
int height = 360;
if (kb) {
bundle_get_str(kb, "WATCH_WIDTH", &width_str);
bundle_get_str(kb, "WATCH_HEIGHT", &height_str);
+ bundle_get_str(kb, "WATCH_VIEWER_VISIBILITY",
+ &viewer_visibility_str);
if (width_str)
width = atoi(width_str);
if (height_str)
height = atoi(height_str);
+ if (viewer_visibility_str)
+ priv.viewer_visibility = atoi(viewer_visibility_str);
+
bundle_free(kb);
} else {
_E("failed to get launch argv");