Merge remote-tracking branch 'origin/5.12' into 5.13

Change-Id: Ie2469da765326e1e2da35c0311c0405b0a691bfa
This commit is contained in:
Qt Forward Merge Bot 2019-06-08 03:00:50 +02:00
commit c296df9d56

View File

@ -387,7 +387,7 @@ QWaylandScreen *QWaylandWindow::calculateScreenFromSurfaceEvents() const
void QWaylandWindow::setVisible(bool visible)
{
if (visible) {
if (window()->type() & (Qt::Popup | Qt::ToolTip))
if (window()->type() == Qt::Popup || window()->type() == Qt::ToolTip)
activePopups << this;
initWindow();
mDisplay->flushRequests();