Fix keyboard input in kms
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 25 Jul 2012 09:14:44 +0000 (12:14 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jul 2012 12:50:26 +0000 (14:50 +0200)
The window was not made active.

Change-Id: I20c323201be71fa4deb758e4a8fc32297d6faf0c
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/plugins/platforms/kms/qkmsintegration.cpp

index d393256..c1e1f0d 100644 (file)
@@ -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