Add missing position reset code 78/311478/1
authorInhong Han <inhong1.han@samsung.com>
Tue, 21 May 2024 05:22:28 +0000 (14:22 +0900)
committerInhong Han <inhong1.han@samsung.com>
Wed, 22 May 2024 00:56:53 +0000 (09:56 +0900)
Change-Id: I0999b7d1c57115fed28711cecd66a1188271400f

src/e_mod_input_panel.c

index 0d16cb5d61e5a88d9e5968b34419613637c3b90e..8b12c61f63252edbbddf87fc469bfb525e695ac1 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);