[Tizen] ecore-wl2: add zxdg_shell define 84/172984/2
authorWonsik, Jung <sidein@samsung.com>
Wed, 14 Feb 2018 04:35:58 +0000 (13:35 +0900)
committerWonsik, Jung <sidein@samsung.com>
Mon, 19 Mar 2018 06:59:13 +0000 (15:59 +0900)
In Tizen 5.0, zxdg_shell is used instead of xdg_shell

Change-Id: I354573456b6d8b5222ebc5a5e33fa0e3525096bb

dali/integration-api/wayland/wl-types.h

index d01b31d..4d1feb0 100644 (file)
 #include <wayland-client.h> // from wayland-devel package
 
 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
+#ifdef ECORE_WL2
+#include <wayland-extension/xdg-shell-unstable-v6-client-protocol.h>
+#else
 #include <wayland-extension/xdg-shell-client-protocol.h>   // from wayland
+#endif
 #include <wayland-extension/text-client-protocol.h>
 #endif
 
@@ -50,8 +54,14 @@ typedef ::wl_touch_listener WlTouchListener;
 typedef ::wl_keyboard_listener WlKeyboardListener;
 
 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
+#ifdef ECORE_WL2
+typedef ::zxdg_shell_v6 WlXdgShell;
+typedef ::zxdg_surface_v6 WlXdgShellSurface;
+#else
 typedef ::xdg_shell WlXdgShell;
 typedef ::xdg_surface WlXdgShellSurface;
+#endif
+
 typedef ::wl_text_input_manager WlTextInputManager;   // See Tizen wayland-extensions/protocol/text.xml
 typedef ::wl_text_input WlTextInput;                  // See Tizen wayland-extensions/protocol/text.xml
 typedef ::wl_text_input_listener WlTextInputListener; // See Tizen wayland-extensions/protocol/text.xml