: __position{0, 0},
__size{0, 0},
__waylandCompositor(nullptr),
- __wm(nullptr)
+ __wm(nullptr),
+ __waylandShell(nullptr)
{
__waylandCompositor = DSWaylandCompositor::getInstance();
if (__waylandCompositor)
{
__waylandCompositor->registerCallbackSurfaceCreated(this, std::bind(&DSZone::__onSurfaceCreated, this, std::placeholders::_1));
__waylandCompositor->registerCallbackSurfaceDestroy(this, std::bind(&DSZone::__onSurfaceDestroy, this, std::placeholders::_1));
- }
- __wm = DSWindowManager::getInstance();
- if (__wm)
- __wm->registerZone(this);
+ __wm = DSWindowManager::getInstance();
+ if (__wm)
+ __wm->registerZone(this);
- __waylandShell = __waylandCompositor->getShell();
- if (__waylandShell)
- __waylandShell->registerCallbackShellSurfaceCreated(this, std::bind(&DSZone::__onShellSurfaceCreated, this, std::placeholders::_1));
+ __waylandShell = __waylandCompositor->getShell();
+ if (__waylandShell)
+ __waylandShell->registerCallbackShellSurfaceCreated(this, std::bind(&DSZone::__onShellSurfaceCreated, this, std::placeholders::_1));
+ }
}
DSZone::~DSZone()