aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/ewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gui/ewindow.cpp')
-rw-r--r--lib/gui/ewindow.cpp6
1 files changed, 4 insertions, 2 deletions
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 <lib/gdi/epng.h>
-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()