eglfs: Activate the window on the primary screen
Having the window on the last screen focused is inconvenient since the main application UI is likely to be shown on the primary screen. Change-Id: I2e7945a903cb432d3428c773ac89c662374632c9 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
1087150f6a
commit
747e569597
@ -203,8 +203,11 @@ QPlatformWindow *QEglFSIntegration::createPlatformWindow(QWindow *window) const
|
||||
QWindowSystemInterface::flushWindowSystemEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
QEglFSWindow *w = qt_egl_device_integration()->createWindow(window);
|
||||
w->create();
|
||||
if (window->type() != Qt::ToolTip)
|
||||
|
||||
// Activate only the window for the primary screen to make input work
|
||||
if (window->type() != Qt::ToolTip && window->screen() == QGuiApplication::primaryScreen())
|
||||
w->requestActivateWindow();
|
||||
|
||||
return w;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user