e_view_client_wh_adjust and e_comp_object_wh_adjust are useless.
Change-Id: I9ab15d0a2f63fa79c2e6627c8fa7de667e16996f
if ((!cw->ec->input_only) && (!cw->ec->override) &&
(((w != pw) || (h != ph))))
{
- //INF("CALLBACK: REQ(%dx%d) != CUR(%dx%d)", w - fw, h - fh, pw, ph);
wl_signal_emit(&cw->events.resize, NULL);
- /* flip for CSD */
- if (cw->ec->input_only)
- e_comp_object_frame_wh_adjust(obj, pw, ph, &w, &h);
- else
- w = pw, h = ph;
+
+ w = pw, h = ph;
if ((cw->w == w) && (cw->h == h))
{
/* going to be a noop resize which won't trigger smart resize */
}
/* utility functions for getting client inset */
-E_API void
-e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah)
-{
- API_ENTRY;
-
- // TODO: this function will be removed
- if (aw) *aw = w;
- if (ah) *ah = h;
-}
-
E_API void
e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah)
{
if ((ec->icccm.max_h > 0) && (*h > ec->icccm.max_h)) *h = ec->icccm.max_h;
else if (*h < ec->icccm.min_h)
*h = ec->icccm.min_h;
-
- if (ec->frame)
- e_comp_object_frame_wh_adjust(ec->frame, *w, *h, w, h);
}
////////////////////////////////////////////
e_client_util_resize_without_frame(E_Client *ec, int w, int h)
{
if (!ec) return;
- e_view_client_frame_wh_adjust(e_client_view_get(ec), w, h, &w, &h);
+
e_view_client_size_set(e_client_view_get(ec), w, h);
e_client_stay_within_canvas_margin(ec);
}
return e_comp_object_mask_has(client->view.eo);
}
-E_API void
-e_view_client_frame_wh_adjust(E_View_Client *client, int width, int height, int *aw, int *ah)
-{
- if (client == NULL) return;
-
- e_comp_object_frame_wh_adjust(client->view.eo, width, height, aw, ah);
-}
-
E_API void
e_view_client_frame_wh_unadjust(E_View_Client *client, int width, int height, int *aw, int *ah)
{
static void
_e_comp_wl_client_size_set(E_Client *ec, int width, int height)
{
- int w, h, nw, nh;
+ int w, h;
w = ec->w;
h = ec->h;
ec->client.w = width;
ec->client.h = height;
- e_view_client_frame_wh_adjust(e_client_view_get(ec),
- ec->client.w, ec->client.h,
- &nw, &nh);
- e_client_size_set(ec, nw, nh);
+ e_client_size_set(ec, ec->client.w, ec->client.h);
if ((w != ec->w) || (h != ec->h))
{
e_view_client_frame_recalc(e_client_view_get(ec));
if (!ec->fullscreen)
- e_view_client_frame_wh_adjust(e_client_view_get(ec), ec->client.w, ec->client.h, &w, &h);
+ {
+ w = ec->client.w;
+ h = ec->client.h;
+ }
if (ec->fullscreen)
{
else if (ec->new_client)
{
if ((ec->w < 1) || (ec->h < 1)) return;
- e_view_client_frame_wh_adjust(e_client_view_get(ec), pw, ph, &w, &h);
- e_view_client_size_set(e_client_view_get(ec), w, h);
+ e_view_client_size_set(e_client_view_get(ec), pw, ph);
}
else if ((w != ec->w) || (h != ec->h))
e_view_client_size_set(e_client_view_get(ec), w, h);
E_API Evas_Object *e_comp_object_util_mirror_add(Evas_Object *obj);
-E_API void e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
E_API void e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
E_API void e_comp_object_signal_emit(Evas_Object *obj, const char *sig, const char *src);
void e_view_client_mask_set(E_View_Client *client, bool set);
bool e_view_client_mask_has(E_View_Client *client);
-void e_view_client_frame_wh_adjust(E_View_Client *client, int width, int height, int *aw, int *ah);
void e_view_client_frame_wh_unadjust(E_View_Client *client, int width, int height, int *aw, int *ah);
void e_view_client_signal_emit(E_View_Client *client, const char *sig, const char *src);