aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/widget.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 0027489c..9c6fe380 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -127,6 +127,9 @@ void Widget::queueResize (int ref, bool extremesChanged)
{
Widget *widget2, *child;
+ //printf("The %stop-level %s %p with parentRef = %d has changed its size.\n",
+ // parent ? "non-" : "", getClassName(), this, parentRef);
+
setFlags (NEEDS_RESIZE);
setFlags (NEEDS_ALLOCATE);
markSizeChange (ref);
@@ -143,6 +146,11 @@ void Widget::queueResize (int ref, bool extremesChanged)
widget2->markSizeChange (child->parentRef);
widget2->setFlags (NEEDS_ALLOCATE);
+ //printf (" Setting DW_NEEDS_RESIZE and NEEDS_ALLOCATE for the "
+ // "%stop-level %s %p with parentRef = %d\n",
+ // widget2->parent ? "non-" : "", widget2->getClassName(), widget2,
+ // widget2->parentRef);
+
if (extremesChanged) {
widget2->setFlags (EXTREMES_CHANGED);
widget2->markExtremesChange (child->parentRef);
@@ -486,6 +494,10 @@ Widget *Widget::getWidgetAtPoint (int x, int y, int level)
Iterator *it;
Widget *childAtPoint;
+ //printf ("%*s-> examining the %s %p (%d, %d, %d x (%d + %d))\n",
+ // 3 * level, "", getClassName (), this, allocation.x, allocation.y,
+ // allocation.width, allocation.ascent, allocation.descent);
+
if (x >= allocation.x &&
y >= allocation.y &&
x <= allocation.x + allocation.width &&