summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-23 23:20:59 +0100
committerSebastian Geerken <devnull@localhost>2015-01-23 23:20:59 +0100
commitcf581248257b88e98fa4315525a0ee531b4cb9c8 (patch)
tree73ecec5922d6ae58de09fb32ad4636cd6dedab17 /dw/layout.cc
parente497d315b87a42184dce3f9b90e495b3a3806b14 (diff)
Same simplifications for Widget::getWidgetAtPoint as for Widget::draw before.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index ca2ceb98..d18bc486 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -1110,9 +1110,10 @@ Widget *Layout::getWidgetAtPoint (int x, int y)
DBG_OBJ_ENTER ("events", 0, "getWidgetAtPoint", "%d, %d", x, y);
Widget *widget;
- if (topLevel && topLevel->wasAllocated ())
- widget = topLevel->getWidgetAtPointToplevel (x, y);
- else
+ if (topLevel && topLevel->wasAllocated ()) {
+ GettingWidgetAtPointContext context;
+ widget = topLevel->getWidgetAtPoint (x, y, &context);
+ } else
widget = NULL;
DBG_OBJ_MSGF ("events", 0, "=> %p", widget);