aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2011-10-06 00:09:17 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2011-10-06 00:09:17 +0000
commitfc1cf7e2597ca71c0049adc2c0e293fa15c0d4d3 (patch)
tree1651bfcd77cdef4846d9fe754c4d63a3401abfee /legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
parentecore_evas_ews: focus-out may be called during deletion. (diff)
downloadefl-fc1cf7e2597ca71c0049adc2c0e293fa15c0d4d3.tar.gz
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
Diffstat (limited to 'legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
index c012990d2b..47ef447481 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
@@ -71,6 +71,8 @@ _ecore_evas_ews_ee_new(void)
_ews_engine, _ews_x, _ews_y, _ews_w, _ews_h, _ews_options);
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_delete_request_set(ee, _ecore_evas_ews_del_request);
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 */
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_geometry_get(_ews_ee, &x, &y, &w, &h);