e_bg_del should only delete the bg on the zone specified
authorSimon Lees <simon@simotek.net>
Tue, 14 Jul 2015 16:30:33 +0000 (12:30 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 14 Jul 2015 16:32:37 +0000 (12:32 -0400)
Summary:
previously e_bg_del didn't take the zone paramater into
account

fixes T2572

Reviewers: raster, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2810

src/bin/e_bg.c

index 5a593aba4581dc1418e57ed9baa1606cad4b7e68..714a3531fe46e15103bc07aefa3fbad8668af0f3 100644 (file)
@@ -374,7 +374,7 @@ e_bg_del(int zone, int desk_x, int desk_y)
    EINA_LIST_FOREACH(e_config->desktop_backgrounds, l, cfbg)
      {
         if (!cfbg) continue;
-        if ((cfbg->desk_x == desk_x) && (cfbg->desk_y == desk_y))
+        if ((cfbg->zone == zone) && (cfbg->desk_x == desk_x) && (cfbg->desk_y == desk_y))
           {
              e_config->desktop_backgrounds = eina_list_remove_list(e_config->desktop_backgrounds, l);
              e_filereg_deregister(cfbg->file);