set wl client geometry before showing in desktop shell

bad things (tm) can happen if geometry doesn't get updated before the show

 #barrel
This commit is contained in:
Mike Blumenkrantz 2015-01-22 23:04:25 -05:00
parent 30f17c5680
commit 01b0f4a85d
1 changed files with 2 additions and 2 deletions

View File

@ -534,8 +534,8 @@ _e_shell_surface_map(struct wl_resource *resource)
if ((!ec->comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
{
ec->visible = EINA_TRUE;
evas_object_show(ec->frame);
evas_object_geometry_set(ec->frame, ec->x, ec->y, ec->w, ec->h);
evas_object_show(ec->frame);
ec->comp_data->mapped = EINA_TRUE;
}
}
@ -1121,8 +1121,8 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
{
/* map this surface if needed */
ec->visible = EINA_TRUE;
evas_object_show(ec->frame);
evas_object_geometry_set(ec->frame, ec->x, ec->y, ec->w, ec->h);
evas_object_show(ec->frame);
ec->comp_data->mapped = EINA_TRUE;
/* FIXME: sometimes popup surfaces Do Not raise above their