From 2946f2d71f6f3ff5d34f6fe6a49894022412e5f3 Mon Sep 17 00:00:00 2001 From: rephorm Date: Fri, 8 Jul 2005 04:33:02 +0000 Subject: [PATCH] if the bg didn't change, keep the original desktop object instead of creating a new one and deleting the old. (this prevents bg's with an initial animation -- ala tokyo's detour bg -- from replaying the ani every desk switch) SVN revision: 15667 --- src/bin/e_bg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_bg.c b/src/bin/e_bg.c index 021405195..dc130c526 100644 --- a/src/bin/e_bg.c +++ b/src/bin/e_bg.c @@ -101,7 +101,8 @@ e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition) if ((pfile) && (file) && (!strcmp(pfile, file)) && (pgroup) && (group) && (!strcmp(pgroup, group))) { - evas_object_del(zone->prev_bg_object); + evas_object_del(zone->bg_object); + zone->bg_object = zone->prev_bg_object; zone->prev_bg_object = NULL; return; }