summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wayland/Ecore_Wayland.h2
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h
index d190e0f82a..899f80e0c3 100644
--- a/src/lib/ecore_wayland/Ecore_Wayland.h
+++ b/src/lib/ecore_wayland/Ecore_Wayland.h
@@ -626,6 +626,8 @@ EAPI void ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, const char
626EAPI void ecore_wl_window_cursor_default_restore(Ecore_Wl_Window *win); 626EAPI void ecore_wl_window_cursor_default_restore(Ecore_Wl_Window *win);
627EAPI void ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent); 627EAPI void ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent);
628 628
629EAPI int ecore_wl_window_id_get(Ecore_Wl_Window *win);
630
629/** 631/**
630 * Returns a wl_surface with no association to any wl_shell_surface. 632 * Returns a wl_surface with no association to any wl_shell_surface.
631 * 633 *
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 0de39d9e58..8307f654c1 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -687,6 +687,17 @@ ecore_wl_window_rotation_get(Ecore_Wl_Window *win)
687 return win->rotation; 687 return win->rotation;
688} 688}
689 689
690/* @since 1.8 */
691EAPI int
692ecore_wl_window_id_get(Ecore_Wl_Window *win)
693{
694 LOGFN(__FILE__, __LINE__, __FUNCTION__);
695
696 if (!win) return 0;
697 return win->id;
698}
699
700
690/* local functions */ 701/* local functions */
691static void 702static void
692_ecore_wl_window_cb_ping(void *data EINA_UNUSED, struct wl_shell_surface *shell_surface, unsigned int serial) 703_ecore_wl_window_cb_ping(void *data EINA_UNUSED, struct wl_shell_surface *shell_surface, unsigned int serial)