mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Restore frameless hint on showing to workaround a bug in Qt
This commit is contained in:
parent
b115ea74d0
commit
bb016e1489
1 changed files with 6 additions and 0 deletions
|
@ -306,6 +306,12 @@ void TitleWidgetQt::windowStateChanged(Qt::WindowState state) {
|
||||||
void TitleWidgetQt::visibleChanged(bool visible) {
|
void TitleWidgetQt::visibleChanged(bool visible) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
updateWindowExtents();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue