changeset 1910:50414b37588a

layout: less bandaidy suggested by Johannes
author corvid <corvid@lavabit.com>
date Fri, 25 Feb 2011 00:54:06 +0000
parents 8433f221dabb
children 967fa1fd93ed cc972f9d7f59
files dw/layout.cc
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dw/layout.cc	Thu Feb 24 04:56:13 2011 +0000
+++ b/dw/layout.cc	Fri Feb 25 00:54:06 2011 +0000
@@ -219,6 +219,8 @@
 
 Layout::~Layout ()
 {
+   widgetAtPoint = NULL;
+
    if (scrollIdleId != -1)
       platform->removeIdle (scrollIdleId);
    if (resizeIdleId != -1)
@@ -852,9 +854,6 @@
    int trackLen, i;
    EventCrossing crossingEvent;
 
-   if (!topLevel)
-      return;
-
    if (newWidgetAtPoint != widgetAtPoint) {
       // The mouse pointer has been moved into another widget.
       if (newWidgetAtPoint && widgetAtPoint)