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
This commit is contained in:
parent
e79d5e3a1d
commit
8ff0925613
|
@ -1146,6 +1146,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.
|
||||
|
|
Loading…
Reference in New Issue