aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_comp_object.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 13:49:30 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 15:44:55 -0400
commit3bda41f895d83c1365797d5f52868756e5c171c1 (patch)
tree3c25e47041fec091f1c306558721156bc59c1260 /src/bin/e_comp_object.c
parentfix mixer logging to use mixer log domain (diff)
downloadenlightenment-3bda41f895d83c1365797d5f52868756e5c171c1.tar.gz
reject invalid comp object resizes
interceptors are called before any of the normal evas object geometry validations, so ensure that invalid sizes are not applied
Diffstat (limited to 'src/bin/e_comp_object.c')
-rw-r--r--src/bin/e_comp_object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index ffe33737a..50356569b 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -1148,6 +1148,8 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h)
E_Comp_Object *cw = data;
int pw = 0, ph = 0, fw, fh, iw, ih, prev_w, prev_h, x, y;
+
+ if ((w < 1) || (h < 1)) return;
/* if frame_object does not exist, client_inset indicates CSD.
* this means that ec->client matches cw->w/h, the opposite
* of SSD.