mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
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:
parent
0b0cb56c1e
commit
3accd85662
@ -724,7 +724,7 @@ void Manager::freeFocus()
|
||||
|
||||
void Manager::freeMouse()
|
||||
{
|
||||
setMouse(NULL);
|
||||
setMouse(pick(ui::get_mouse_position()));
|
||||
}
|
||||
|
||||
void Manager::freeCapture()
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user