return __getZone(surface);
}
+bool DSWindowManagerPrivate::setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface)
+{
+ // find dsSurface's window
+ DSZone *zone = __getZone(dswlSurface);
+ if (!zone) return false;
+
+ DSZone *pZone = __getZone(dswlParentSurface);
+ if (zone != pZone) return false;
+
+ return zone->setWindowParent(dswlSurface, dswlParentSurface);
+}
void DSWindowManagerPrivate::setWindowTitle(DSWaylandSurface *dsSurface, const std::string &title)
{
return priv->getZone(surface);
}
+bool DSWindowManager::setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface)
+{
+ DS_GET_PRIV(DSWindowManager);
+ return priv->setWindowParent(dswlSurface, dswlParentSurface);
+}
+
void DSWindowManager::setWindowTitle(DSWaylandSurface *dsSurface, const std::string &title)
{
DS_GET_PRIV(DSWindowManager);
void unregisterSurface(DSZone *zone, DSWaylandSurface *surface);
DSZone *getZone(DSWaylandSurface *surface);
+ bool setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface);
void setWindowTitle(DSWaylandSurface *dsSurface, const std::string &title);
void setWindowType(DSWaylandSurface *dsSurface, int type);
void setWindowGeometry(DSWaylandSurface *dsSurface, int x, int y, unsigned int w, unsigned h);
void unregisterSurface(DSZone *zone, DSWaylandSurface *surface);
DSZone *getZone(DSWaylandSurface *surface);
+ bool setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface);
void setWindowTitle(DSWaylandSurface *dsSurface, const std::string &title);
void setWindowType(DSWaylandSurface *dsSurface, int type);
void setWindowGeometry(DSWaylandSurface *dsSurface, int x, int y, unsigned int w, unsigned h);