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