DSZone: modify testCreateWindow function 39/243439/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 2 Sep 2020 06:28:44 +0000 (15:28 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 7 Sep 2020 10:35:30 +0000 (19:35 +0900)
Change-Id: I0ce2d001309f9a62db10b9a067bf00918f97c767

src/DSZone/DSZone.cpp

index 610e872..eedc406 100644 (file)
@@ -235,10 +235,11 @@ void DSZone::callCallbackWindowShellCreated(std::shared_ptr<DSWindowShell> winSh
 
 bool DSZone::testCreateWindow(std::shared_ptr<DSWaylandSurface> waylandSurface)
 {
-       std::shared_ptr<DSWindow> window = __createWindow(waylandSurface);
-       if (!window) return false;
+       if (waylandSurface == nullptr)
+               return false;
 
-       return true;
+        __onSurfaceCreated(waylandSurface);
+        return true;
 }
 
 std::list<std::shared_ptr<DSWindow>> DSZone::getWindowList()