fix xmonad regression
This commit is contained in:
parent
75c31c08d5
commit
6ef24fd90e
@ -800,14 +800,6 @@ Dialog::Dialog(QQuickItem *parent)
|
|||||||
d->slotWindowPositionChanged();
|
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, &QWindow::visibleChanged, this, &Dialog::visibleChangedProxy);
|
||||||
connect(this, SIGNAL(visibleChanged(bool)), this, SLOT(updateInputShape()));
|
connect(this, SIGNAL(visibleChanged(bool)), this, SLOT(updateInputShape()));
|
||||||
connect(this, SIGNAL(outputOnlyChanged()), this, SLOT(updateInputShape()));
|
connect(this, SIGNAL(outputOnlyChanged()), this, SLOT(updateInputShape()));
|
||||||
@ -1412,8 +1404,6 @@ void Dialog::setVisible(bool visible)
|
|||||||
setPosition(popupPosition(d->visualParent, size()));
|
setPosition(popupPosition(d->visualParent, size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bug 381242: Qt remembers minimize state and re-applies it when showing
|
|
||||||
setWindowStates(windowStates() & ~Qt::WindowMinimized);
|
|
||||||
QQuickWindow::setVisible(visible);
|
QQuickWindow::setVisible(visible);
|
||||||
// signal will be emitted and proxied from the QQuickWindow code
|
// signal will be emitted and proxied from the QQuickWindow code
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user