Don't call focusFirstChild() if the Window doesn't want the focus

This commit is contained in:
David Capello 2015-05-04 12:50:04 -03:00
parent fa8afc02e9
commit ca3fade50d

View File

@ -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);
}