mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Restore frameless hint on showing to workaround a bug in Qt
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user