mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 13:59:46 +00:00
Don't call focusFirstChild() if the Window doesn't want the focus
This commit is contained in:
parent
fa8afc02e9
commit
ca3fade50d
@ -194,7 +194,7 @@ bool Manager::generateMessages()
|
||||
if (magnet && !magnet->hasFocus())
|
||||
setFocus(magnet);
|
||||
// 3) if not, put the focus in the first child
|
||||
else
|
||||
else if (static_cast<Window*>(window)->isWantFocus())
|
||||
focusFirstChild(window);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user