winrt: move input context creation into xaml thread
This way we ensure that creation always works and we can access the input pane statics. Task-number: QTBUG-49034 Change-Id: I5d0340a7f6304b717f17f2106134fa9d083a7fde Reviewed-by: Samuel Nevala <samuel.nevala@intopalo.com> Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
This commit is contained in:
parent
439a713643
commit
39639694c8
@ -134,10 +134,10 @@ QWinRTIntegration::QWinRTIntegration() : d_ptr(new QWinRTIntegrationPrivate)
|
||||
|
||||
QEventDispatcherWinRT::runOnXamlThread([d]() {
|
||||
d->mainScreen = new QWinRTScreen;
|
||||
d->inputContext.reset(new QWinRTInputContext(d->mainScreen));
|
||||
return S_OK;
|
||||
});
|
||||
|
||||
d->inputContext.reset(new QWinRTInputContext(d->mainScreen));
|
||||
screenAdded(d->mainScreen);
|
||||
d->platformServices = new QWinRTServices;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user