forked from enlightenment/efl
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:
parent
fb2819c4fd
commit
be452d83c9
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue