From: Seunghun Lee Date: Wed, 24 Feb 2016 09:44:01 +0000 (+0900) Subject: ecore-wl: do not destroy the wl_surface during ecore_wl_window is existed. X-Git-Tag: accepted/tizen/common/20160318.145525~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17d228ab91b96737eb2c499e466ac896c3b9014b;p=platform%2Fupstream%2Fefl.git ecore-wl: do not destroy the wl_surface during ecore_wl_window is existed. If we destroy wl_surface by ecore_wl_window_hide(), all of the protocol related wl_surface should be made again when it is shown. But external libraries doesn't know about state of wl_surface, Thus, keeping the wl_surface with ecore_wl_window is better. Change-Id: I6977d761bcbce8bf280abb986fa5ac126c98c63f --- diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index 0d8b38e..33ec087 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -638,9 +638,6 @@ ecore_wl_window_hide(Ecore_Wl_Window *win) if (win->shell_surface) wl_shell_surface_destroy(win->shell_surface); win->shell_surface = NULL; - - if (win->surface) wl_surface_destroy(win->surface); - win->surface = NULL; } EAPI void