X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7eab308715ea1130166915574e3b691e08eb4482..db6ca522bdfbde29c214b41435a10876ff72a0a4:/lib/gui/ewindow.cpp diff --git a/lib/gui/ewindow.cpp b/lib/gui/ewindow.cpp index 06827a9e..f8984729 100644 --- a/lib/gui/ewindow.cpp +++ b/lib/gui/ewindow.cpp @@ -6,7 +6,7 @@ #include -eWindow::eWindow(eWidgetDesktop *desktop): eWidget(0) +eWindow::eWindow(eWidgetDesktop *desktop, int z): eWidget(0) { m_flags = 0; /* ask style manager for current style */ @@ -22,12 +22,14 @@ eWindow::eWindow(eWidgetDesktop *desktop): eWidget(0) style = new eWindowStyleSimple(); setStyle(style); + + setZPosition(z); /* must be done before addRootWidget */ /* we are the parent for the child window. */ /* as we are in the constructor, this is thread safe. */ m_child = this; m_child = new eWidget(this); - desktop->addRootWidget(this, 0); + desktop->addRootWidget(this); } eWindow::~eWindow()