From: Doyoun Kang Date: Sun, 12 Nov 2017 06:31:45 +0000 (+0900) Subject: ecore_wl2: change code ecore_wl2_display_window_find_by_surface X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8b77fb0820be1f6f7f27fa053cbffa967a8e51f;p=platform%2Fupstream%2Fefl.git ecore_wl2: change code ecore_wl2_display_window_find_by_surface Change-Id: I40aa1030001250292244b8f67a096e96226a1585 --- 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); } //