Revert "Modified to prevent setting invalid geometry of the floating IME" 03/320003/1
authorInhong Han <inhong1.han@samsung.com>
Wed, 6 Nov 2024 10:21:10 +0000 (19:21 +0900)
committerInhong Han <inhong1.han@samsung.com>
Wed, 6 Nov 2024 10:22:46 +0000 (19:22 +0900)
This reverts commit 7a6bc78ccd5c009e08de0698766da55d4bf4a12d

Change-Id: Id10e432d344be366c53e5bec632555a33774ea96

src/e_mod_input_panel.c

index 96c21fb23c5a576846fdfca6c0d304b4631aa073..1320dfefbe26b601453c7d00d9eafcc18cb2fd20 100644 (file)
@@ -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);
 }