Restore frameless hint on showing to workaround a bug in Qt

This commit is contained in:
Ilya Fedin 2021-01-12 19:35:32 +04:00 committed by John Preston
parent b115ea74d0
commit bb016e1489

View file

@ -306,6 +306,12 @@ void TitleWidgetQt::windowStateChanged(Qt::WindowState state) {
void TitleWidgetQt::visibleChanged(bool visible) {
if (visible) {
updateWindowExtents();
// workaround a bug in Qt 5.12, works ok in Qt 5.15
// https://github.com/telegramdesktop/tdesktop/issues/10119
if (!_windowWasFrameless) {
toggleFramelessWindow(true);
}
}
}