[Tizen] Change to latest wayland inputmethod protocol submit/tizen/20220119.054331 submit/tizen/20220119.152241 submit/tizen/20220120.072320
authortscholb <scholb.kim@samsung.com>
Wed, 19 Jan 2022 02:01:14 +0000 (11:01 +0900)
committertscholb <scholb.kim@samsung.com>
Wed, 19 Jan 2022 02:01:19 +0000 (11:01 +0900)
This reverts commit ccbc4f90dbdaa652dac15a6415259d2c7f7b009b.

dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.h

index ccea97c..5443da8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -2614,9 +2614,9 @@ void WindowBaseEcoreWl2::InitializeIme()
 
   EINA_ITERATOR_FOREACH(globals, global)
   {
-    if(strcmp(global->interface, "wl_input_panel") == 0)
+    if(strcmp(global->interface, "zwp_input_panel_v1") == 0)
     {
-      mWlInputPanel = (wl_input_panel*)wl_registry_bind(registry, global->id, &wl_input_panel_interface, 1);
+      mWlInputPanel = (zwp_input_panel_v1*)wl_registry_bind(registry, global->id, &zwp_input_panel_v1_interface, 1);
     }
     else if(strcmp(global->interface, "wl_output") == 0)
     {
@@ -2636,14 +2636,14 @@ void WindowBaseEcoreWl2::InitializeIme()
     return;
   }
 
-  mWlInputPanelSurface = wl_input_panel_get_input_panel_surface(mWlInputPanel, mWlSurface);
+  mWlInputPanelSurface = zwp_input_panel_v1_get_input_panel_surface(mWlInputPanel, mWlSurface);
   if(!mWlInputPanelSurface)
   {
     DALI_LOG_ERROR("WindowBaseEcoreWl2::InitializeIme(), fail to get wayland input panel surface\n");
     return;
   }
 
-  wl_input_panel_surface_set_toplevel(mWlInputPanelSurface, mWlOutput, WL_INPUT_PANEL_SURFACE_POSITION_CENTER_BOTTOM);
+  zwp_input_panel_surface_v1_set_toplevel(mWlInputPanelSurface, mWlOutput, ZWP_INPUT_PANEL_SURFACE_V1_POSITION_CENTER_BOTTOM);
 }
 
 void WindowBaseEcoreWl2::ImeWindowReadyToRender()
@@ -2654,7 +2654,7 @@ void WindowBaseEcoreWl2::ImeWindowReadyToRender()
     return;
   }
 
-  wl_input_panel_surface_set_ready(mWlInputPanelSurface, 1);
+  zwp_input_panel_surface_v1_set_ready(mWlInputPanelSurface, 1);
 }
 
 void WindowBaseEcoreWl2::RequestMoveToServer()
index 3df827b..fce358e 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_WINDOWSYSTEM_TIZENWAYLAND_WINDOW_BASE_ECORE_WL2_H
 
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -548,10 +548,10 @@ private:
   Dali::Vector<Ecore_Event_Handler*>                        mEcoreEventHandler;
   Ecore_Wl2_Window*                                         mEcoreWindow;
 
-  wl_surface*             mWlSurface;
-  wl_input_panel*         mWlInputPanel;
-  wl_output*              mWlOutput;
-  wl_input_panel_surface* mWlInputPanelSurface;
+  wl_surface*                 mWlSurface;
+  zwp_input_panel_v1*         mWlInputPanel;
+  wl_output*                  mWlOutput;
+  zwp_input_panel_surface_v1* mWlInputPanelSurface;
 
   wl_egl_window*        mEglWindow;
   wl_display*           mDisplay;