devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=518b97cc1c7da791b4d9315058f25c45a3a747f9

commit 518b97cc1c7da791b4d9315058f25c45a3a747f9
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Oct 1 10:00:07 2015 -0400

    ecore-wl2: Add API function to find a window given a window id
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_display.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index 8a739dd..7a46329 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -489,3 +489,16 @@ ecore_wl2_display_screen_size_get(Ecore_Wl2_Display 
*display, int *w, int *h)
    if (w) *w = ow;
    if (h) *h = oh;
 }
+
+EAPI Ecore_Wl2_Window *
+ecore_wl2_display_window_find(Ecore_Wl2_Display *display, unsigned int id)
+{
+   Ecore_Wl2_Window *window;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+
+   EINA_INLIST_FOREACH(display->windows, window)
+     if (window->id == (int)id) return window;
+
+   return NULL;
+}

-- 


Reply via email to