From: Inhong Han Date: Wed, 6 Nov 2024 10:21:10 +0000 (+0900) Subject: Revert "Modified to prevent setting invalid geometry of the floating IME" X-Git-Tag: accepted/tizen/unified/20241108.105511~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F320003%2F1;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Revert "Modified to prevent setting invalid geometry of the floating IME" This reverts commit 7a6bc78ccd5c009e08de0698766da55d4bf4a12d Change-Id: Id10e432d344be366c53e5bec632555a33774ea96 --- diff --git a/src/e_mod_input_panel.c b/src/e_mod_input_panel.c index 96c21fb..1320dfe 100644 --- a/src/e_mod_input_panel.c +++ b/src/e_mod_input_panel.c @@ -664,16 +664,7 @@ _e_input_panel_position_set(E_Client *ec, int w, int h) if (g_floating_info->resizing && g_floating_info->new_width > 0 && g_floating_info->new_height > 0) { - int ec_w = ec->w; - int ec_h = ec->h; - - if (angle == 90 || angle == 270) - { - ec_w = ec->h; - ec_h = ec->w; - } - - if (g_floating_info->new_width != ec_w || g_floating_info->new_height != ec_h) + if (g_floating_info->new_width != ec->w || g_floating_info->new_height != ec->h) { LOGI("x : %d, y : %d, w : %d, h : %d", nx, ny, g_floating_info->new_width, g_floating_info->new_height); e_client_util_move_resize_without_frame(ec, nx, ny, g_floating_info->new_width, g_floating_info->new_height); @@ -1890,9 +1881,6 @@ void e_input_panel_floating_position_align_set(int x, int y, int align) void e_input_panel_floating_panel_move_resize(int x, int y, int w, int h) { - E_Input_Panel_Surface *floating_ips = NULL; - int angle = 0; - LOGI("x : %d, y : %d, w : %d, h : %d", x, y, w, h); if (g_floating_info->align_position.x >= 0 || g_floating_info->align_position.y >= 0) @@ -1901,20 +1889,8 @@ void e_input_panel_floating_panel_move_resize(int x, int y, int w, int h) g_floating_info->align_position.y = -1; } - floating_ips = _e_input_floating_panel_surface_get(); - if (floating_ips && floating_ips->ec) - angle = floating_ips->ec->e.state.rot.ang.curr; - - if (angle == 90 || angle == 270) - { - g_floating_info->new_width = h; - g_floating_info->new_height = w; - } - else - { - g_floating_info->new_width = w; - g_floating_info->new_height = h; - } + g_floating_info->new_width = w; + g_floating_info->new_height = h; e_input_panel_floating_position_set(x, y); }