forked from enlightenment/enlightenment
add util function for determining if a client is allowed to have a frame
returns false if mwm borderless is set or if csd exists
This commit is contained in:
parent
b8322b2b0e
commit
39a39a41c8
|
@ -2889,6 +2889,13 @@ e_comp_object_frame_geometry_set(Evas_Object *obj, int l, int r, int t, int b)
|
|||
cw->ec->h += t + b;
|
||||
}
|
||||
|
||||
E_API Eina_Bool
|
||||
e_comp_object_frame_allowed(Evas_Object *obj)
|
||||
{
|
||||
API_ENTRY EINA_FALSE;
|
||||
return (!cw->ec->mwm.borderless) && (cw->frame_object || (!cw->client_inset.calc));
|
||||
}
|
||||
|
||||
E_API void
|
||||
e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h)
|
||||
{
|
||||
|
|
|
@ -53,6 +53,7 @@ E_API void e_comp_object_util_center(Evas_Object *obj);
|
|||
E_API void e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on);
|
||||
E_API void e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y);
|
||||
E_API void e_comp_object_util_fullscreen(Evas_Object *obj);
|
||||
E_API Eina_Bool e_comp_object_frame_allowed(Evas_Object *obj);
|
||||
E_API void e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int *b);
|
||||
E_API void e_comp_object_frame_geometry_set(Evas_Object *obj, int l, int r, int t, int b);
|
||||
E_API void e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h);
|
||||
|
|
Loading…
Reference in New Issue