From c16001caba04a56b9111e98449413d44112891b0 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 4 Sep 2018 17:32:44 +0900 Subject: [PATCH] [SDL_Tizen] Fix Resume/Pause issuse when use multi-window Change-Id: I42c7848eb91dd56e58d5e9872c236a297c3c7135 Signed-off-by: huiyu.eun --- src/video/tizen/SDL_tizenwindow.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/video/tizen/SDL_tizenwindow.c b/src/video/tizen/SDL_tizenwindow.c index 5f66744..a7fab1d 100755 --- a/src/video/tizen/SDL_tizenwindow.c +++ b/src/video/tizen/SDL_tizenwindow.c @@ -629,7 +629,7 @@ Tizen_CreateWindow(_THIS, SDL_Window *window) Ecore_Wl2_Global *global; Eina_Iterator *globals; Ecore_Wl2_Display *wl2_display = ecore_wl2_connected_display_get(NULL); - + Ecore_Wl2_Window *parent_wl2_window = NULL; wind = calloc(1, sizeof * wind); if (!wind) { @@ -670,7 +670,11 @@ Tizen_CreateWindow(_THIS, SDL_Window *window) return -1; } - wind->window = ecore_wl2_window_new(wl2_display, NULL, + if(window->next) + { + parent_wl2_window = ((SDL_WindowData *)(window->next->driverdata))->window; + } + wind->window = ecore_wl2_window_new(wl2_display, parent_wl2_window, window->x, window->y, window->w, window->h); if (!wind->window) { SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Failed to create wayland window"); -- 2.7.4