From 17d228ab91b96737eb2c499e466ac896c3b9014b Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Wed, 24 Feb 2016 18:44:01 +0900 Subject: [PATCH] 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 --- src/lib/ecore_wayland/ecore_wl_window.c | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.7.4