diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-25 11:39:53 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-25 11:39:53 +0200 |
commit | a3486120edf86a0248f0162e5cae2ab7250c9848 (patch) | |
tree | 98a079b7125debaf44e62111ac64668f2e05c8a7 /dw/layout.cc | |
parent | bcebc40e56a88fac5fbdd4cc04d74d53ac6ec3ff (diff) |
Some work on mouse events (getWidgetAtPoint).
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index d46d2455..600f2088 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -1100,12 +1100,17 @@ void Layout::leaveNotify (View *view, ButtonState state) */ Widget *Layout::getWidgetAtPoint (int x, int y) { - _MSG ("------------------------------------------------------------\n"); - _MSG ("widget at (%d, %d)\n", x, y); + DBG_OBJ_ENTER ("events", 0, "getWidgetAtPoint", "%d, %d", x, y); + Widget *widget; + if (topLevel && topLevel->wasAllocated ()) - return topLevel->getWidgetAtPoint (x, y, 0); + widget = topLevel->getWidgetAtPoint (x, y); else - return NULL; + widget = NULL; + + DBG_OBJ_MSGF ("events", 0, "=> %p", widget); + DBG_OBJ_LEAVE (); + return widget; } |