summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-25 12:13:51 +0200
committerSebastian Geerken <devnull@localhost>2014-10-25 12:13:51 +0200
commitdcf6e00e9b790e0868d8863f140567eef5e540c1 (patch)
tree01b4fcdb5b0ddcdd98e90264869974aaa74da7ff /dw/layout.cc
parent607814bdead6d72fb6825a5502e625a216114a1c (diff)
Applied interruption (as used for drawing) also to Widget::getWidgetAtPoint. (Still bugs\!)
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index 43c27dd8..df22bb75 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -1110,7 +1110,7 @@ Widget *Layout::getWidgetAtPoint (int x, int y)
Widget *widget;
if (topLevel && topLevel->wasAllocated ())
- widget = topLevel->getWidgetAtPoint (x, y);
+ widget = topLevel->getWidgetAtPointToplevel (x, y);
else
widget = NULL;
@@ -1126,12 +1126,16 @@ Widget *Layout::getWidgetAtPoint (int x, int y)
*/
void Layout::moveToWidget (Widget *newWidgetAtPoint, ButtonState state)
{
+ DBG_OBJ_ENTER ("events", 0, "moveToWidget", "%p, %d",
+ newWidgetAtPoint, state);
+
Widget *ancestor, *w;
Widget **track;
int trackLen, i, i_a;
EventCrossing crossingEvent;
- _MSG("moveToWidget: wap=%p nwap=%p\n",widgetAtPoint,newWidgetAtPoint);
+ DBG_OBJ_MSGF ("events", 1, "(old) widgetAtPoint = %p", widgetAtPoint);
+
if (newWidgetAtPoint != widgetAtPoint) {
// The mouse pointer has been moved into another widget.
if (newWidgetAtPoint && widgetAtPoint)
@@ -1201,6 +1205,8 @@ void Layout::moveToWidget (Widget *newWidgetAtPoint, ButtonState state)
widgetAtPoint = newWidgetAtPoint;
updateCursor ();
}
+
+ DBG_OBJ_LEAVE ();
}
/**