ecore-wl - add ecore_wl_window_surface_id_get so we can unbreak elm
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 2 Nov 2013 02:44:15 +0000 (11:44 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 2 Nov 2013 02:44:15 +0000 (11:44 +0900)
src/lib/ecore_wayland/Ecore_Wayland.h
src/lib/ecore_wayland/ecore_wl_window.c

index f58d41f..d4efec9 100644 (file)
@@ -572,7 +572,8 @@ EAPI void ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *pare
 EAPI int ecore_wl_window_id_get(Ecore_Wl_Window *win);
 EAPI void ecore_wl_window_title_set(Ecore_Wl_Window *win, const char *title);
 EAPI void ecore_wl_window_class_name_set(Ecore_Wl_Window *win, const char *class_name);
-
+EAPI int ecore_wl_window_surface_id_get(Ecore_Wl_Window *win);
+       
 EAPI Ecore_Wl_Input *ecore_wl_window_keyboard_get(Ecore_Wl_Window *win);
 
 /**
index 9b732d1..b0f66dd 100644 (file)
@@ -689,6 +689,16 @@ ecore_wl_window_id_get(Ecore_Wl_Window *win)
 }
 
 /* @since 1.8 */
+EAPI int
+ecore_wl_window_surface_id_get(Ecore_Wl_Window *win)
+{
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+   if (!win) return 0;
+   return win->surface_id;
+}
+
+/* @since 1.8 */
 EAPI void
 ecore_wl_window_title_set(Ecore_Wl_Window *win, const char *title)
 {