mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 05:50:15 +00:00
Revert "Make Manager::freeMouse() to select a new visible widget"
This reverts commit 3accd85662
.
This commit is contained in:
parent
17e1c22a65
commit
48a1af7342
@ -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()
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user