fix xmonad regression

This commit is contained in:
alecs 2021-07-26 12:25:03 +02:00
parent 75c31c08d5
commit 6ef24fd90e

View File

@ -800,14 +800,6 @@ Dialog::Dialog(QQuickItem *parent)
d->slotWindowPositionChanged();
});
// Given dialogs are skip task bar and don't have a decoration
// minimizing them using e.g. "minimize all" should just close them
connect(this, &QWindow::windowStateChanged, this, [this](Qt::WindowState newState) {
if (newState == Qt::WindowMinimized) {
setVisible(false);
}
});
connect(this, &QWindow::visibleChanged, this, &Dialog::visibleChangedProxy);
connect(this, SIGNAL(visibleChanged(bool)), this, SLOT(updateInputShape()));
connect(this, SIGNAL(outputOnlyChanged()), this, SLOT(updateInputShape()));
@ -1412,8 +1404,6 @@ void Dialog::setVisible(bool visible)
setPosition(popupPosition(d->visualParent, size()));
}
// Bug 381242: Qt remembers minimize state and re-applies it when showing
setWindowStates(windowStates() & ~Qt::WindowMinimized);
QQuickWindow::setVisible(visible);
// signal will be emitted and proxied from the QQuickWindow code
} else {