summaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-01-10 00:41:32 +0100
committerSebastian Geerken <devnull@localhost>2016-01-10 00:41:32 +0100
commiteebb08f031950f87205d04c926e76e7098b2a93a (patch)
treef90961b52bc874179264b00fecd7633f1c9522b6 /dw
parentf3170c41ea31c074568465527399c4db1fdbc72e (diff)
Deactivate interrupted drawing (until positioned elements are correctly implemented).
Diffstat (limited to 'dw')
-rw-r--r--dw/oofawarewidget.cc27
1 files changed, 16 insertions, 11 deletions
diff --git a/dw/oofawarewidget.cc b/dw/oofawarewidget.cc
index 12d9c958..891d51cf 100644
--- a/dw/oofawarewidget.cc
+++ b/dw/oofawarewidget.cc
@@ -365,17 +365,22 @@ bool OOFAwareWidget::doesWidgetOOFInterruptDrawing (Widget *widget)
{
DBG_OBJ_ENTER ("draw", 0, "doesWidgetOOFInterruptDrawing", "%p", widget);
- // This is the generator of the widget.
- int oofmIndex = getOOFMIndex (widget);
- DBG_OBJ_MSGF ("draw", 1, "oofmIndex = %d", oofmIndex);
-
- int cl = oofContainer[oofmIndex]->stackingContextWidget->getLevel (),
- gl = stackingContextWidget->getLevel ();
-
- DBG_OBJ_MSGF ("draw", 1,"%d < %d => %s", cl, gl, cl < gl ? "true" : "false");
-
- DBG_OBJ_LEAVE ();
- return cl < gl;
+ bool result;
+ if (IMPL_POS) {
+ // This is the generator of the widget.
+ int oofmIndex = getOOFMIndex (widget);
+ DBG_OBJ_MSGF ("draw", 1, "oofmIndex = %d", oofmIndex);
+
+ int cl = oofContainer[oofmIndex]->stackingContextWidget->getLevel (),
+ gl = stackingContextWidget->getLevel ();
+ result = cl < gl;
+
+ DBG_OBJ_MSGF ("draw", 1,"%d < %d => %s", cl, gl, boolToStr (result));
+ } else
+ result = false;
+
+ DBG_OBJ_LEAVE_VAL ("%s", boolToStr (result));
+ return result;
}
void OOFAwareWidget::draw (View *view, Rectangle *area, DrawingContext *context)