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
53e0c56f5e
commit
fc1da30ad4
|
@ -2783,6 +2783,13 @@ e_comp_object_frame_geometry_set(Evas_Object *obj, int l, int r, int t, int b)
|
||||||
cw->ec->h += t + 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_API void
|
||||||
e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h)
|
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_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_center_pos_get(Evas_Object *obj, int *x, int *y);
|
||||||
E_API void e_comp_object_util_fullscreen(Evas_Object *obj);
|
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_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_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);
|
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