2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use tg_owt in OS X 10.10-10.11 build.

This commit is contained in:
John Preston
2020-08-20 18:00:18 +04:00
parent 693d3a922f
commit 0139390c71
7 changed files with 41 additions and 51 deletions

View File

@@ -357,9 +357,11 @@ void MainWindow::updateShadowSize() {
}
void MainWindow::recountGeometryConstraints() {
#ifdef Q_OS_LINUX
const auto hasShadow = this->hasShadow();
setWindowFlag(Qt::NoDropShadowWindowHint, hasShadow);
setAttribute(Qt::WA_OpaquePaintEvent, !hasShadow);
#endif // Q_OS_LINUX
updateShadowSize();
updateMinimumSize();