Add missing position reset code 32/311432/1
authorInhong Han <inhong1.han@samsung.com>
Tue, 21 May 2024 05:22:28 +0000 (14:22 +0900)
committerInhong Han <inhong1.han@samsung.com>
Tue, 21 May 2024 05:24:29 +0000 (14:24 +0900)
Change-Id: I0999b7d1c57115fed28711cecd66a1188271400f

src/e_mod_input_panel.c

index 078e1974a79ce2646ede1312b69935bc35d8e1d9..50621301c0e4f8327c3145df1d9ff1b7dc007ca9 100644 (file)
@@ -1890,6 +1890,13 @@ 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)
 {
    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)
+     {
+        g_floating_info->align_position.x = -1;
+        g_floating_info->align_position.y = -1;
+     }
+
    g_floating_info->new_width = w;
    g_floating_info->new_height = h;
    e_input_panel_floating_position_set(x, y);