(ec->resize_mode == E_POINTER_RESIZE_TR))
new_y += (h - new_h);
- if (ec->manage_resize.resize_obj == NULL)
+ if (e_config->interactive_resize)
{
- ec->manage_resize.resize_obj = _e_client_resize_object_create(ec);
- EINA_SAFETY_ON_NULL_RETURN(ec->manage_resize.resize_obj);
- }
-
- if (e_client_transform_core_enable_get(ec))
- {
- e_client_transform_core_input_inv_transform(ec, new_x, new_y, &trans_x, &trans_y);
- e_client_transform_core_input_inv_transform(ec, new_w, new_h, &trans_w, &trans_h);
- evas_object_geometry_set(ec->manage_resize.resize_obj, trans_x, trans_y, trans_w, trans_h);
+ evas_object_geometry_set(ec->frame, new_x, new_y, new_w, new_h);
}
else
- evas_object_geometry_set(ec->manage_resize.resize_obj, new_x, new_y, new_w, new_h);
- evas_object_show(ec->manage_resize.resize_obj);
+ {
+ if (ec->manage_resize.resize_obj == NULL)
+ {
+ ec->manage_resize.resize_obj = _e_client_resize_object_create(ec);
+ EINA_SAFETY_ON_NULL_RETURN(ec->manage_resize.resize_obj);
+ }
- ec->manage_resize.x = new_x;
- ec->manage_resize.y = new_y;
- ec->manage_resize.w = new_w;
- ec->manage_resize.h = new_h;
+ if (e_client_transform_core_enable_get(ec))
+ {
+ e_client_transform_core_input_inv_transform(ec, new_x, new_y, &trans_x, &trans_y);
+ e_client_transform_core_input_inv_transform(ec, new_w, new_h, &trans_w, &trans_h);
+ evas_object_geometry_set(ec->manage_resize.resize_obj, trans_x, trans_y, trans_w, trans_h);
+ }
+ else
+ evas_object_geometry_set(ec->manage_resize.resize_obj, new_x, new_y, new_w, new_h);
+ evas_object_show(ec->manage_resize.resize_obj);
+
+ ec->manage_resize.x = new_x;
+ ec->manage_resize.y = new_y;
+ ec->manage_resize.w = new_w;
+ ec->manage_resize.h = new_h;
+ }
}
static int
ecresize = NULL;
- if (ec->manage_resize.resize_obj)
+ if (!e_config->interactive_resize)
{
- evas_object_geometry_set(ec->frame,
- ec->manage_resize.x,
- ec->manage_resize.y,
- ec->manage_resize.w,
- ec->manage_resize.h);
- _e_client_resize_object_del(ec);
+ if (ec->manage_resize.resize_obj)
+ {
+ evas_object_geometry_set(ec->frame,
+ ec->manage_resize.x,
+ ec->manage_resize.y,
+ ec->manage_resize.w,
+ ec->manage_resize.h);
+ _e_client_resize_object_del(ec);
+ }
}
return 1;