Make Manager::freeMouse() to select a new visible widget

In this way we generate a SetCursor message when a widget is hidden.
This commit is contained in:
David Capello 2015-06-29 15:46:08 -03:00
parent 0b0cb56c1e
commit 3accd85662
2 changed files with 2 additions and 2 deletions

View File

@ -724,7 +724,7 @@ void Manager::freeFocus()
void Manager::freeMouse()
{
setMouse(NULL);
setMouse(pick(ui::get_mouse_position()));
}
void Manager::freeCapture()

View File

@ -195,8 +195,8 @@ void Widget::setVisible(bool state)
}
else {
if (!hasFlags(HIDDEN)) {
getManager()->freeWidget(this); // Free from manager
enableFlags(HIDDEN);
getManager()->freeWidget(this); // Free from manager
}
}
}