projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e5800
)
ecore-wl2: Add API function to find a window given a window id
author
Chris Michael
<cp.michael@samsung.com>
Thu, 1 Oct 2015 14:00:07 +0000
(10:00 -0400)
committer
Chris Michael
<cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000
(12:02 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_display.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_wl2/ecore_wl2_display.c
b/src/lib/ecore_wl2/ecore_wl2_display.c
index
8a739dd
..
7a46329
100644
(file)
--- 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;
+}