force bryce repositioning onto target zone during startup

ensure that subsequent operations do not accidentally the bryce's zone

fix T4784
This commit is contained in:
Mike Blumenkrantz 2016-11-07 11:38:34 -05:00
parent 49d9cea5aa
commit a08654f773
1 changed files with 8 additions and 0 deletions

View File

@ -134,6 +134,14 @@ _bryce_position(Bryce *b, int w, int h, int *nx, int *ny)
zone = e_comp_zone_number_get(b->zone);
ox = zone->x, oy = zone->y, ow = zone->w, oh = zone->h;
if (starting)
{
E_Zone *zone2;
zone2 = e_comp_object_util_zone_get(b->bryce);
if (zone != zone2)
evas_object_move(b->bryce, ox, oy);
}
}
else
evas_object_geometry_get(b->parent, &ox, &oy, &ow, &oh);