Added interface for delivering floating IME requests
[platform/core/uifw/isf.git] / ism / modules / panelagent / wayland / wayland_panel_agent_module.cpp
index 9c9c8f1..9318a55 100644 (file)
@@ -3571,6 +3571,25 @@ public:
         else
             LOGW ("Failed to get input method manager interface");
     }
+
+    void set_floating_mode (int id, uint32 context_id, uint32 floating_mode)
+    {
+        LOGD ("client id:%d", id);
+        WSCContextISF* ic = find_ic (context_id);
+        if (!ic) return;
+
+        if (ic->im_ctx)
+            wl_input_method_context_set_floating_panel (ic->im_ctx, floating_mode);
+    }
+
+    void set_floating_drag_enabled (int id, uint32 context_id, uint32 enabled)
+    {
+        WSCContextISF* ic = find_ic (context_id);
+        if (!ic) return;
+
+        if (ic->im_ctx)
+            wl_input_method_context_set_floating_drag_enabled (ic->im_ctx, enabled);
+    }
 };
 
 extern "C" {