Client xdg-shell: Fix protocol error for tooltips on popups

[ChangeLog][QPA plugin] Fixed a protocol error that used to happen when closing
a menu with an active tooltip.

Fixes: QTBUG-71734
Change-Id: I784fef08494fabaa4debea11f51116cf9de1f86e
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
This commit is contained in:
Johan Klokkhammer Helsing 2018-12-21 14:41:03 +01:00 committed by Johan Helsing
parent 24ef6801e4
commit ac1d9c43e6

View File

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