Fix wayland hide for internal windows

We need to make sure we drop reference on all exit paths through the
hide callback - somehow this only seemed to break internal windows.

ref 65166c5a36
This commit is contained in:
Derek Foreman 2016-03-10 11:11:20 -06:00 committed by Mike Blumenkrantz
parent ec9776e5eb
commit ba88768344
1 changed files with 6 additions and 2 deletions

View File

@ -140,9 +140,13 @@ _e_comp_wl_evas_cb_hide(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EIN
if (!e_object_is_del(E_OBJECT(ec))) return;
e_comp_object_dirty(ec->frame);
e_comp_object_damage(ec->frame, 0, 0, ec->w, ec->h);
if (!e_comp_object_render(ec->frame)) return;
e_comp_object_dirty(ec->frame);
if (!e_comp_object_render(ec->frame))
{
e_object_unref(E_OBJECT(ec));
return;
}
if (!ec->on_post_updates)
{
ec->on_post_updates = EINA_TRUE;