Ecore_Evas (wayland): Do not allow windows to be resized below their

desired min/max properties. Fixes ticket #1244



SVN revision: 75308
This commit is contained in:
Christopher Michael 2012-08-16 08:03:20 +00:00
parent fb2819c4fd
commit be452d83c9
2 changed files with 10 additions and 0 deletions

View File

@ -1008,6 +1008,11 @@ _ecore_evas_wl_cb_window_configure(void *data __UNUSED__, int type __UNUSED__, v
nh = ev->h - fh;
}
if (ee->prop.min.w > nw) nw = ee->prop.min.w;
else if (nw > ee->prop.max.w) nw = ee->prop.max.w;
if (ee->prop.min.h > nh) nh = ee->prop.min.h;
else if (nh > ee->prop.max.h) nh = ee->prop.max.h;
if ((ee->w != nw) || (ee->h != nh))
{
ee->req.w = nw;

View File

@ -1185,6 +1185,11 @@ _ecore_evas_wl_cb_window_configure(void *data __UNUSED__, int type __UNUSED__, v
nh = ev->h - fh;
}
if (ee->prop.min.w > nw) nw = ee->prop.min.w;
else if (nw > ee->prop.max.w) nw = ee->prop.max.w;
if (ee->prop.min.h > nh) nh = ee->prop.min.h;
else if (nh > ee->prop.max.h) nh = ee->prop.max.h;
if ((ee->w != nw) || (ee->h != nh))
{
ee->req.w = nw;