diff --git a/src/plugins/platforms/kms/qkmsintegration.cpp b/src/plugins/platforms/kms/qkmsintegration.cpp index d3932568a7..c1e1f0d576 100644 --- a/src/plugins/platforms/kms/qkmsintegration.cpp +++ b/src/plugins/platforms/kms/qkmsintegration.cpp @@ -107,7 +107,9 @@ QPlatformOpenGLContext *QKmsIntegration::createPlatformOpenGLContext(QOpenGLCont QPlatformWindow *QKmsIntegration::createPlatformWindow(QWindow *window) const { - return new QKmsWindow(window); + QKmsWindow *w = new QKmsWindow(window); + w->requestActivateWindow(); + return w; } QPlatformBackingStore *QKmsIntegration::createPlatformBackingStore(QWindow *window) const