if the bg didn't change, keep the original desktop object instead of
authorrephorm <rephorm>
Fri, 8 Jul 2005 04:33:02 +0000 (04:33 +0000)
committerrephorm <rephorm@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Jul 2005 04:33:02 +0000 (04:33 +0000)
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

index 021405195cee94656ac466df990c6725ce4c3c7b..dc130c5260994e5b2731d9e59136f53d72209ae0 100644 (file)
@@ -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;
          }