aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-02-25 00:54:06 +0000
committercorvid <corvid@lavabit.com>2011-02-25 00:54:06 +0000
commitf68c508f8bed52834e2894abe312d1c8e8b1cd1d (patch)
tree72b24d467791406817a32965e4bbff19f128e557 /dw/layout.cc
parente90273b90ea846855dfeb5fd675104d26114701e (diff)
layout: less bandaidy
suggested by Johannes
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index d1fecf48..d2097859 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -219,6 +219,8 @@ Layout::Layout (Platform *platform)
Layout::~Layout ()
{
+ widgetAtPoint = NULL;
+
if (scrollIdleId != -1)
platform->removeIdle (scrollIdleId);
if (resizeIdleId != -1)
@@ -852,9 +854,6 @@ void Layout::moveToWidget (Widget *newWidgetAtPoint, ButtonState state)
int trackLen, i;
EventCrossing crossingEvent;
- if (!topLevel)
- return;
-
if (newWidgetAtPoint != widgetAtPoint) {
// The mouse pointer has been moved into another widget.
if (newWidgetAtPoint && widgetAtPoint)