|
|
@ -1333,8 +1333,8 @@ static bool HandleMouseOver()
|
|
|
|
if (w != NULL) {
|
|
|
|
if (w != NULL) {
|
|
|
|
/* send an event in client coordinates. */
|
|
|
|
/* send an event in client coordinates. */
|
|
|
|
Point pt = { _cursor.pos.x - w->left, _cursor.pos.y - w->top };
|
|
|
|
Point pt = { _cursor.pos.x - w->left, _cursor.pos.y - w->top };
|
|
|
|
int widget = w->nested_root->GetWidgetFromPos(pt.x, pt.y)->index;
|
|
|
|
const NWidgetCore *widget = w->nested_root->GetWidgetFromPos(pt.x, pt.y);
|
|
|
|
w->OnMouseOver(pt, widget);
|
|
|
|
if (widget != NULL) w->OnMouseOver(pt, widget->index);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Mouseover never stops execution */
|
|
|
|
/* Mouseover never stops execution */
|
|
|
|