summaryrefslogtreecommitdiff
path: root/src/bin/e_bg.c
diff options
context:
space:
mode:
authorSimon Lees <simon@simotek.net>2015-07-14 12:30:33 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-07-14 12:32:37 -0400
commite8911323c39b7452de31cea292e6cf6a75a820bb (patch)
treeede0ebe6b263d1040a72ff19bed19d90dbecc2bc /src/bin/e_bg.c
parent964fabe6e2b2f54caa8eca83a5e3df6998d4e841 (diff)
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
Diffstat (limited to 'src/bin/e_bg.c')
-rw-r--r--src/bin/e_bg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_bg.c b/src/bin/e_bg.c
index 5a593ab..714a353 100644
--- a/src/bin/e_bg.c
+++ b/src/bin/e_bg.c
@@ -374,7 +374,7 @@ e_bg_del(int zone, int desk_x, int desk_y)
374 EINA_LIST_FOREACH(e_config->desktop_backgrounds, l, cfbg) 374 EINA_LIST_FOREACH(e_config->desktop_backgrounds, l, cfbg)
375 { 375 {
376 if (!cfbg) continue; 376 if (!cfbg) continue;
377 if ((cfbg->desk_x == desk_x) && (cfbg->desk_y == desk_y)) 377 if ((cfbg->zone == zone) && (cfbg->desk_x == desk_x) && (cfbg->desk_y == desk_y))
378 { 378 {
379 e_config->desktop_backgrounds = eina_list_remove_list(e_config->desktop_backgrounds, l); 379 e_config->desktop_backgrounds = eina_list_remove_list(e_config->desktop_backgrounds, l);
380 e_filereg_deregister(cfbg->file); 380 e_filereg_deregister(cfbg->file);