From b8b77fb0820be1f6f7f27fa053cbffa967a8e51f Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Sun, 12 Nov 2017 15:31:45 +0900 Subject: [PATCH] ecore_wl2: change code ecore_wl2_display_window_find_by_surface Change-Id: I40aa1030001250292244b8f67a096e96226a1585 --- src/lib/ecore_wl2/ecore_wl2_display.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c index 17a5821..00047b3a 100644 --- a/src/lib/ecore_wl2/ecore_wl2_display.c +++ b/src/lib/ecore_wl2/ecore_wl2_display.c @@ -1457,14 +1457,7 @@ ecore_wl2_display_window_find(Ecore_Wl2_Display *display, unsigned int id) EAPI Ecore_Wl2_Window * ecore_wl2_display_window_find_by_surface(Ecore_Wl2_Display *display, struct wl_surface *surface) { - Ecore_Wl2_Window *window; - - EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL); - - EINA_INLIST_FOREACH(display->windows, window) - if (window->surface == surface) return window; - - return NULL; + return _ecore_wl2_display_window_surface_find(display, surface); } // -- 2.7.4