forked from enlightenment/efl
ews: do not allow resize the window using a mouse.
EWS is meant to run in FB or other systems without actual windows, but as we test on X11 let's forbid to change the resolution. One is still able to do it using ecore_evas_ews_setup(). SVN revision: 63860
This commit is contained in:
parent
f51d00e4cf
commit
fc1cf7e259
|
@ -71,6 +71,8 @@ _ecore_evas_ews_ee_new(void)
|
||||||
_ews_engine, _ews_x, _ews_y, _ews_w, _ews_h, _ews_options);
|
_ews_engine, _ews_x, _ews_y, _ews_w, _ews_h, _ews_options);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
ecore_evas_size_min_set(ee, _ews_w, _ews_h);
|
||||||
|
ecore_evas_size_max_set(ee, _ews_w, _ews_h);
|
||||||
ecore_evas_callback_pre_free_set(ee, _ecore_evas_ews_pre_free);
|
ecore_evas_callback_pre_free_set(ee, _ecore_evas_ews_pre_free);
|
||||||
ecore_evas_callback_delete_request_set(ee, _ecore_evas_ews_del_request);
|
ecore_evas_callback_delete_request_set(ee, _ecore_evas_ews_del_request);
|
||||||
ecore_evas_name_class_set(ee, "ecore_evas_ews", "ews");
|
ecore_evas_name_class_set(ee, "ecore_evas_ews", "ews");
|
||||||
|
@ -1283,6 +1285,8 @@ ecore_evas_ews_setup(int x, int y, int w, int h)
|
||||||
|
|
||||||
/* move-resize is not as implemented as move + resize */
|
/* move-resize is not as implemented as move + resize */
|
||||||
ecore_evas_move(_ews_ee, x, y);
|
ecore_evas_move(_ews_ee, x, y);
|
||||||
|
ecore_evas_size_min_set(_ews_ee, w, h);
|
||||||
|
ecore_evas_size_max_set(_ews_ee, w, h);
|
||||||
ecore_evas_resize(_ews_ee, w, h);
|
ecore_evas_resize(_ews_ee, w, h);
|
||||||
|
|
||||||
ecore_evas_geometry_get(_ews_ee, &x, &y, &w, &h);
|
ecore_evas_geometry_get(_ews_ee, &x, &y, &w, &h);
|
||||||
|
|
Loading…
Reference in New Issue