DSZone: add setWindowParent API 00/242100/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Sat, 22 Aug 2020 08:10:25 +0000 (17:10 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 24 Aug 2020 06:32:40 +0000 (15:32 +0900)
Change-Id: I595e7cc1c33f8f0a6a5055caa58360e03b3038ca

src/DSZone/DSZone.cpp
src/DSZone/DSZone.h

index 52c55f9..4823aac 100644 (file)
@@ -313,6 +313,16 @@ void DSZone::__destroyWindowShell(DSWindowShell* windowShell, DSWaylandSurface *
        }
 }
 
+bool DSZone::setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface)
+{
+       DSWindowShell *wShell = __findWindowShell(dswlSurface);
+       if (!wShell) return false;
+
+       DSWindowShell *pwShell = __findWindowShell(dswlParentSurface);
+
+       return wShell->setParent(pwShell);
+}
+
 bool DSZone::setWindowTitle(DSWaylandSurface *dswSurface, const std::string &title)
 {
        DSWindowShell *wShell = __findWindowShell(dswSurface);
index 9d5083b..f7266fc 100644 (file)
@@ -63,6 +63,7 @@ public:
        bool testCreateWindow(std::shared_ptr<DSWaylandSurface> waylandSurface);
 
        // for window property
+       bool setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface);
        bool setWindowTitle(DSWaylandSurface *dswSurface, const std::string &title);
        bool setWindowType(DSWaylandSurface *dswSurface, int type);
        bool setWindowGeometry(DSWaylandSurface *dswSurface, int x, int y, unsigned int w, unsigned h);