summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-06-12 11:07:21 +0200
committerSebastian Geerken <devnull@localhost>2014-06-12 11:07:21 +0200
commitb068e76b797c92c92b9f363dd7cb1967fdff5b5b (patch)
tree3ee403025fbac1d92c7dc236c2085ce5f10a1ad1 /dw/layout.cc
parent20697624f615da7e4aca96f9777a82d2cacb7cfb (diff)
parent24f92f1a625dfd9631b5350a56e75205083350df (diff)
Merge with main repository.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index b9c6ff98..818effd2 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -1093,7 +1093,7 @@ Widget *Layout::getWidgetAtPoint (int x, int y)
{
_MSG ("------------------------------------------------------------\n");
_MSG ("widget at (%d, %d)\n", x, y);
- if (topLevel)
+ if (topLevel && topLevel->wasAllocated ())
return topLevel->getWidgetAtPoint (x, y, 0);
else
return NULL;