void (*pfunc)(gpointer, gpointer);
time_t now;
gint t;
-
-
Actor *actor;
+
+if (!desktop_plugin->priv->visible)
+ return TRUE;
fprintf(stderr, "timer daytime=%d\n", daytime);
if (scene.daytime != daytime){
tmp = scene.actors;
{
gboolean visible;
g_object_get (object, "is-on-current-desktop", &visible, NULL);
- fprintf (stderr, "is-on-current-desktop changed. visible: %u", visible);
+ if (visible)
+ desktop_plugin->priv->visible = TRUE;
+ else
+ desktop_plugin->priv->visible = FALSE;
+ /* fprintf (stderr, "is-on-current-desktop changed. visible: %u", visible); */
}
static void