From 33cf5b733d72d2af40a5c2336120b3f48a040513 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Thu, 2 Apr 2020 13:22:14 +0900 Subject: [PATCH] Fix a crash on Ubuntu ecore_x_init() should be called before a window is created. Change-Id: I36ffc65f5f509a90691bce36178f1a41d9ca03a5 --- dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp b/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp index 07d6ea4..ab67b43 100755 --- a/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp +++ b/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp @@ -20,6 +20,7 @@ // INTERNAL HEADERS #include +#include #include #include @@ -263,6 +264,8 @@ WindowBaseEcoreX::~WindowBaseEcoreX() if( mOwnSurface ) { ecore_x_window_free( mEcoreWindow ); + + WindowSystem::Shutdown(); } } @@ -274,6 +277,8 @@ void WindowBaseEcoreX::Initialize( PositionSize positionSize, Any surface, bool // if the surface is empty, create a new one. if( surfaceId == 0 ) { + WindowSystem::Initialize(); + // we own the surface about to created mOwnSurface = true; CreateWindow( positionSize, isTransparent ); -- 2.7.4