Modified to not set the invalid window angle 05/250305/2
authorInHong Han <inhong1.han@samsung.com>
Mon, 28 Dec 2020 01:29:37 +0000 (10:29 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 28 Dec 2020 01:29:37 +0000 (10:29 +0900)
Change-Id: Id9b7978de3335e826eb8a17b5ac6f29d751a6f8f

src/e_mod_main.c

index 1ff599c..b03af58 100644 (file)
@@ -1521,7 +1521,17 @@ _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *
 
              g_show_client = client;
              int angle = 0;
-             if (client_surface_ec) angle = client_surface_ec->e.state.rot.ang.curr;
+             if (client_surface_ec)
+               {
+                  E_Util_Transform *transform = &client_surface_ec->transform_core.result.transform;
+                  Eina_Bool transformEnabled = e_client_transform_core_enable_get(client_surface_ec);
+
+                  if (transformEnabled && transform != 0)
+                    e_util_transform_rotation_round_get(transform, NULL, NULL, &angle);
+                  else
+                    angle = client_surface_ec->e.state.rot.ang.curr;
+               }
+
              wl_input_method_send_show_input_panel(input_method->resource, input_method->context->resource, angle);
 
              /* we need to force update in order to release buffer