diff options
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 7 |
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); |