QNX: Surpress manual window activation during showFullScreen
When a window is shown, libscreen will give it keyboard focus. Requesting the activation right after the window is created (and before libscreen activated the window) causes problems on some devices e.g. Q10. Change-Id: I29f7a38990ea4259a8b0c6624f70e31d7291af00 Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
This commit is contained in:
parent
1a6d7b6e93
commit
8d83562c1f
@ -1751,7 +1751,10 @@ void QWindow::showFullScreen()
|
||||
{
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
setVisible(true);
|
||||
#if !defined Q_OS_QNX // On QNX this window will be activated anyway from libscreen
|
||||
// activating it here before libscreen activates it causes problems
|
||||
requestActivate();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -2837,7 +2837,10 @@ void QWidget::showFullScreen()
|
||||
setWindowState((windowState() & ~(Qt::WindowMinimized | Qt::WindowMaximized))
|
||||
| Qt::WindowFullScreen);
|
||||
setVisible(true);
|
||||
#if !defined Q_OS_QNX // On QNX this window will be activated anyway from libscreen
|
||||
// activating it here before libscreen activates it causes problems
|
||||
activateWindow();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user