Under some (not totally clear) circumstances, a TLW can remain inactive after being shown, which is undesirable, as it prevents setting focus to its children from working. Work around this by calling activateWindow() explicitly if necessary. Closes https://github.com/wxWidgets/wxWidgets/pull/1179