set client shape rectangle properly based on input area

- fix wl client crashses (patch from gwanglim)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-06-05 12:12:50 -04:00 committed by Chris Michael
parent dc4e619dea
commit 1238686136
1 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,9 @@ _e_comp_wl_surface_cb_commit(struct wl_client *client EINA_UNUSED, struct wl_res
#endif
/* handle surface opaque region */
ec->wl_comp_data->shape = ec->wl_comp_data->input;
EINA_RECTANGLE_SET(ec->wl_comp_data->shape,
ec->wl_comp_data->input->x, ec->wl_comp_data->input->y,
ec->wl_comp_data->input->w, ec->wl_comp_data->input->h)
/* handle surface damages */
if ((!ec->comp->nocomp) && (ec->frame))