E_Client *modal;
E_View_Client *view_client;
+
+ struct
+ {
+ int x, y;
+ unsigned int w, h;
+ Eina_Bool apply;
+ } layout_info;
};
static int _e_client_hooks_delete = 0;
ELOGF("TZPOL", "Consider Shadow size(l:%d,r:%d,t:%d,b:%d). new (%d,%d,%dx%d)",
ec, ec->manage_resize.shadow.l, ec->manage_resize.shadow.r, ec->manage_resize.shadow.t, ec->manage_resize.shadow.b, x, y, w, h);
+ e_client_layout_geometry_set(ec, x, y, w, h);
e_client_layout_apply(ec, EINA_TRUE);
e_client_frame_geometry_set(ec, x, y, w, h);
EINTERN void
e_client_layout_apply(E_Client *ec, Eina_Bool apply)
{
- if (!ec) return;
- ec->apply_layout = apply;
+ API_ENTRY;
+ priv->layout_info.apply = apply;
}
EINTERN Eina_Bool
e_client_is_layout_apply(E_Client *ec)
{
- if (!ec) return EINA_FALSE;
- return ec->apply_layout;
+ API_ENTRY_VAL(EINA_FALSE);
+ return priv->layout_info.apply;
}
E_API E_Client *
return EINA_TRUE;
}
+EINTERN void
+e_client_layout_geometry_set(E_Client *ec, int x, int y, unsigned int w, unsigned int h)
+{
+ API_ENTRY;
+
+ priv->layout_info.x = x;
+ priv->layout_info.y = y;
+ priv->layout_info.w = w;
+ priv->layout_info.h = h;
+}
+
+E_API Eina_Bool
+e_client_layout_geometry_get(E_Client *ec, int *x, int *y, unsigned int *w, unsigned int *h)
+{
+ API_ENTRY_VAL(EINA_FALSE);
+
+ if (x) *x = priv->layout_info.x;
+ if (y) *y = priv->layout_info.y;
+ if (w) *w = priv->layout_info.w;
+ if (h) *h = priv->layout_info.h;
+
+ return EINA_TRUE;
+}
+
E_API int
e_client_client_type_get(E_Client *ec)
{
EINTERN E_Pixmap *e_client_pixmap_change(E_Client *ec, E_Pixmap *newcp);
+EINTERN void e_client_layout_geometry_set(E_Client *ec, int x, int y, unsigned int w, unsigned int h);
+
EINTERN void e_client_frame_geometry_set(E_Client *ec, int x, int y, int w, int h);
EINTERN void e_client_frame_update(E_Client *ec);
x, y, w, h, ec->layer,
ec->visible, mapped, ec->argb, ec->visibility.opaque, e_client_visibility_get(ec), ec->visibility.force_obscured, iconified,
evas_object_visible_get(ec->frame), ec->focused, hwc, hwc_policy, pl_zpos, pwin, layer_name, has_input_region, transformed, ec->transient_policy,
- zone_id, ec->apply_layout);
+ zone_id, e_client_is_layout_apply(ec));
eldbus_message_iter_container_close(array_of_ec, struct_of_ec);
}
ec->x, ec->y, ec->w, ec->h, ec->layer,
ec->visible, mapped, ec->argb, ec->visibility.opaque, e_client_visibility_get(ec), ec->visibility.force_obscured, iconified,
evas_object_visible_get(ec->frame), ec->focused, hwc, hwc_policy, pl_zpos, pwin, layer_name, has_input_region, transformed, ec->transient_policy,
- zone_id, ec->apply_layout);
+ zone_id, e_client_is_layout_apply(ec));
eldbus_message_iter_container_close(array_of_ec, struct_of_ec);
}
E_API void e_client_changed_set(E_Client *ec, Eina_Bool change);
E_API Eina_Bool e_client_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h);
+E_API Eina_Bool e_client_layout_geometry_get(E_Client *ec, int *x, int *y, unsigned int *w, unsigned int *h);
E_API int e_client_client_type_get(E_Client *ec);
E_API void e_client_e_fetch_rot_available_rots_set(E_Client *ec, Eina_Bool set);