e_bg_del should only delete the bg on the zone specified

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
This commit is contained in:
Simon Lees 2015-07-14 12:30:33 -04:00 committed by Mike Blumenkrantz
parent 964fabe6e2
commit e8911323c3
1 changed files with 1 additions and 1 deletions

View 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);