aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-15 21:43:20 +0200
committerSebastian Geerken <devnull@localhost>2014-09-15 21:43:20 +0200
commite1c93c6553f9330c8414c3f4b8e51529b5abc610 (patch)
tree38e308a29b60df15e1507cce42d3f9e5ecf82c55 /dw/layout.cc
parenta4d92f6ec2a1bf92c1f0bc408a7060a774bd027d (diff)
Z-Index and stacking contexts: start.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index 2845a8e9..d46d2455 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -374,6 +374,13 @@ void Layout::addWidget (Widget *widget)
return;
}
+ // The toplevel widget always establishes a stacking context. It could
+ // already be set in Widget::setStyle().
+ if (widget->stackingContextMgr == NULL) {
+ widget->stackingContextMgr = new StackingContextMgr (widget);
+ DBG_OBJ_ASSOC (widget, widget->stackingContextMgr);
+ }
+
topLevel = widget;
widget->layout = this;
widget->container = NULL;