Negative values in shadow geometry make no sense at all, however it's
happening all the time in wayland. Let's throw an ERR so it doesn't go
unnoticed.
Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com>
Reviewed-by: Chris Michael <cp.michael@samsung.com>
Differential Revision: https://phab.enlightenment.org/D7434
ecore_evas_shadow_geometry_set(Ecore_Evas *ee, int l, int r, int t, int b)
{
ECORE_EVAS_CHECK(ee);
+ EINA_SAFETY_ON_TRUE_RETURN(l < 0);
+ EINA_SAFETY_ON_TRUE_RETURN(r < 0);
+ EINA_SAFETY_ON_TRUE_RETURN(t < 0);
+ EINA_SAFETY_ON_TRUE_RETURN(b < 0);
if ((ee->shadow.l == l) && (ee->shadow.r == r) &&
(ee->shadow.t == t) && (ee->shadow.b == b)) return;
ee->shadow.l = l;