File diff r13560:251ed15297e0 → r13561:cb473daf8c03
src/window.cpp
Show inline comments
 
@@ -1330,14 +1330,14 @@ static bool HandleMouseOver()
 
	/* _mouseover_last_w will get reset when the window is deleted, see DeleteWindow() */
 
	_mouseover_last_w = w;
 

	
 
	if (w != NULL) {
 
		/* send an event in client coordinates. */
 
		Point pt = { _cursor.pos.x - w->left, _cursor.pos.y - w->top };
 
		int widget = w->nested_root->GetWidgetFromPos(pt.x, pt.y)->index;
 
		w->OnMouseOver(pt, widget);
 
		const NWidgetCore *widget = w->nested_root->GetWidgetFromPos(pt.x, pt.y);
 
		if (widget != NULL) w->OnMouseOver(pt, widget->index);
 
	}
 

	
 
	/* Mouseover never stops execution */
 
	return true;
 
}