ecore-evas wayland: clamp max size hints to 0

This commit is contained in:
Mike Blumenkrantz 2017-08-07 11:05:58 -04:00
parent bc28c4b579
commit a827f418d9
1 changed files with 2 additions and 0 deletions

View File

@ -1462,6 +1462,8 @@ _ecore_evas_wl_common_size_max_set(Ecore_Evas *ee, int w, int h)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ee) return;
if (w < 0) w = 0;
if (h < 0) h = 0;
if ((ee->prop.max.w == w) && (ee->prop.max.h == h)) return;
ee->prop.max.w = w;
ee->prop.max.h = h;