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

This reverts commit 3accd85662.
This commit is contained in:
David Capello 2015-07-03 13:43:05 -03:00
parent 17e1c22a65
commit 48a1af7342
2 changed files with 2 additions and 2 deletions

View File

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

View File

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