mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 23:57:16 +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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue