ecore_imf/wayland: support private command protocol 47/48747/2 accepted/tizen/mobile/20150929.014355 accepted/tizen/tv/20150929.014415 accepted/tizen/wearable/20150929.014427 submit/tizen/20150926.121837
authorJihoon Kim <jihoon48.kim@samsung.com>
Sat, 26 Sep 2015 12:07:42 +0000 (21:07 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Sat, 26 Sep 2015 12:11:25 +0000 (21:11 +0900)
Change-Id: I141384fa44c9e6e438a9eb365a8acec83aaafe60

src/modules/ecore_imf/wayland/wayland_imcontext.c

index a6553fc..5f19028 100644 (file)
@@ -753,6 +753,18 @@ text_input_selection_region(void                 *data,
     ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_SELECTION_SET, &ev);
 }
 
+static void
+text_input_private_command(void                 *data,
+                           struct wl_text_input *text_input EINA_UNUSED,
+                           uint32_t              serial EINA_UNUSED,
+                           const char           *command)
+{
+    WaylandIMContext *imcontext = (WaylandIMContext *)data;
+    if (!imcontext || !imcontext->ctx) return;
+
+    ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_PRIVATE_COMMAND_SEND, (void *)command);
+}
+
 static const struct wl_text_input_listener text_input_listener =
 {
    text_input_enter,
@@ -768,7 +780,8 @@ static const struct wl_text_input_listener text_input_listener =
    text_input_keysym,
    text_input_language,
    text_input_text_direction,
-   text_input_selection_region
+   text_input_selection_region,
+   text_input_private_command
 };
 
 EAPI void