ecore_imf: Modified to allow sending negative coordinate 08/213508/2
authorInHong Han <inhong1.han@samsung.com>
Fri, 6 Sep 2019 05:26:10 +0000 (14:26 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 9 Sep 2019 07:10:20 +0000 (07:10 +0000)
Change-Id: Iaab502563b17f642a9e4bdfcb163ae65db0bab13

src/lib/ecore_imf/Ecore_IMF.h
src/lib/ecore_imf/ecore_imf_context.c

index 6934ea0..2f60a94 100644 (file)
@@ -2060,7 +2060,7 @@ EAPI void                         ecore_imf_context_mime_type_accept_set(Ecore_I
 /**
  * @ingroup Ecore_IMF_Context_Group
  * @brief Sets the x,y coordinates of the input panel.
- * @remarks This API can be used in floating mode.
+ * @remarks This API can be used in floating mode. The coordinate is set to the last position of input panel when the values of x and y are -1, -1.
  *
  * @since 1.21.0
  *
index 34d5919..73d105b 100644 (file)
@@ -1481,8 +1481,6 @@ ecore_imf_context_input_panel_position_set(Ecore_IMF_Context *ctx, int x, int y)
         return;
      }
 
-   if (x < 0 || y < 0) return;
-
    if (ctx->klass && ctx->klass->input_panel_position_set)
      ctx->klass->input_panel_position_set(ctx, x, y);
 }