add some smart callbacks for comp objects on redirect/dirty state change
This commit is contained in:
parent
5b4ef00d56
commit
218064ffe0
|
@ -3279,6 +3279,7 @@ e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set)
|
||||||
e_comp_object_render_update_add(obj);
|
e_comp_object_render_update_add(obj);
|
||||||
else
|
else
|
||||||
e_comp_object_damage(obj, 0, 0, cw->w, cw->h);
|
e_comp_object_damage(obj, 0, 0, cw->w, cw->h);
|
||||||
|
evas_object_smart_callback_call(obj, "redirected", NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3300,6 +3301,7 @@ e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set)
|
||||||
}
|
}
|
||||||
cw->native = 0;
|
cw->native = 0;
|
||||||
e_comp_object_render_update_del(obj);
|
e_comp_object_render_update_del(obj);
|
||||||
|
evas_object_smart_callback_call(obj, "unredirected", NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3391,6 +3393,7 @@ e_comp_object_dirty(Evas_Object *obj)
|
||||||
eina_tiler_tile_size_set(cw->updates, 1, 1);
|
eina_tiler_tile_size_set(cw->updates, 1, 1);
|
||||||
}
|
}
|
||||||
cw->update_count = cw->updates_full = cw->updates_exist = 0;
|
cw->update_count = cw->updates_full = cw->updates_exist = 0;
|
||||||
|
evas_object_smart_callback_call(obj, "dirty", NULL);
|
||||||
if (cw->visible || (!visible) || (!cw->pending_updates)) return;
|
if (cw->visible || (!visible) || (!cw->pending_updates)) return;
|
||||||
/* force render if main object is hidden but mirrors are visible */
|
/* force render if main object is hidden but mirrors are visible */
|
||||||
e_comp_object_render(obj);
|
e_comp_object_render(obj);
|
||||||
|
|
Loading…
Reference in New Issue