reconfigure the zone bg on zone move/resize, and make sure it is recalculated if the bg pans

SVN revision: 42419
This commit is contained in:
Viktor Kojouharov 2009-09-11 17:27:08 +00:00
parent 47415c096d
commit 7acb839557
2 changed files with 7 additions and 1 deletions

View File

@ -228,7 +228,7 @@ e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition)
const char *pfile = "";
edje_object_file_get(zone->bg_object, &pfile, NULL);
if (!e_util_strcmp(pfile, bgfile)) return;
if ((!e_util_strcmp(pfile, bgfile)) && !e_config->desk_flip_pan_bg) return;
}
if (transition == E_BG_TRANSITION_NONE)

View File

@ -274,6 +274,8 @@ e_zone_move(E_Zone *zone, int x, int y)
zone->x + 1 + cw, zone->y + zone->h - 1, zone->w - 2 - 2 * cw, 1);
ecore_x_window_move_resize(zone->corner.bottom_left,
zone->x + zone->w - cw - 2, zone->y + zone->h - 1, cw, 1);
e_zone_bg_reconfigure(zone);
}
EAPI void
@ -329,6 +331,8 @@ e_zone_resize(E_Zone *zone, int w, int h)
zone->x + 1 + cw, zone->y + zone->h - 1, zone->w - 2 - 2 * cw, 1);
ecore_x_window_move_resize(zone->corner.bottom_left,
zone->x + zone->w - cw - 2, zone->y + zone->h - 1, cw, 1);
e_zone_bg_reconfigure(zone);
}
EAPI void
@ -394,6 +398,8 @@ e_zone_move_resize(E_Zone *zone, int x, int y, int w, int h)
zone->x + 1 + cw, zone->y + zone->h - 1, zone->w - 2 - 2 * cw, 1);
ecore_x_window_move_resize(zone->corner.bottom_left,
zone->x + zone->w - cw - 2, zone->y + zone->h - 1, cw, 1);
e_zone_bg_reconfigure(zone);
}
EAPI void