From: Junseok, Kim Date: Wed, 8 May 2019 11:12:11 +0000 (+0900) Subject: doing transform when surface is ready X-Git-Tag: submit/tizen/20190514.024650~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F205686%2F5;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git doing transform when surface is ready Change-Id: I9cd00ddf6525f47e048fb971c5ba6eb62c2ad86e --- diff --git a/src/e_mod_input_panel.c b/src/e_mod_input_panel.c index 72aae2f..ca92416 100644 --- a/src/e_mod_input_panel.c +++ b/src/e_mod_input_panel.c @@ -245,6 +245,9 @@ _e_input_panel_surface_cb_ready_set(struct wl_client *client EINA_UNUSED, struct LOGD("IPS::SHOW::READY\n"); + // base_output_resolution + e_client_base_output_resolution_transform_adjust(ips->ec); + _e_input_panel_surface_show(ips); } @@ -376,7 +379,7 @@ _e_input_panel_init_floating_position(E_Client *ec) if (!ec || !g_floating_info) return; - e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); + e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh); switch (ec->e.state.rot.ang.curr) { @@ -410,7 +413,7 @@ _e_input_panel_stay_within_screen(E_Client *ec, int x, int y, int *new_x, int *n if (!ec || !g_floating_info) return; if (!_e_input_panel_allow_position_set(ec, NULL, __FUNCTION__)) return; - e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); + e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh); switch (ec->e.state.rot.ang.curr) { @@ -464,7 +467,7 @@ _e_input_panel_convert_floating_position(E_Client *ec, int x, int y, int *new_x, (!g_floating_info->init_landscape_position && (cur_angle == 90 || cur_angle == 270))) _e_input_panel_init_floating_position(ec); - e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); + e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh); switch (cur_angle) { @@ -527,7 +530,7 @@ _e_input_panel_position_set(E_Client *ec, int w, int h) if (!_e_input_panel_allow_position_set(ec, focused_ec, __FUNCTION__)) return; - e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); + e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh); /* Get the position of center bottom each angles */ switch (ec->e.state.rot.ang.curr) @@ -954,6 +957,9 @@ _e_input_panel_cb_surface_get(struct wl_client *client, struct wl_resource *reso ips->eh.rot_change_end = ecore_event_handler_add(E_EVENT_CLIENT_ROTATION_CHANGE_END, _e_input_panel_client_cb_rotation_change_end, ips); + + // base_output_resolution. + e_client_base_output_resolution_update(ec); }