ecore-wl: do not destroy the wl_surface during ecore_wl_window is existed. 55/61555/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 24 Feb 2016 09:44:01 +0000 (18:44 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 9 Mar 2016 00:57:23 +0000 (09:57 +0900)
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

index 0d8b38e..33ec087 100644 (file)
@@ -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