From ae30366cbfba665fdeb30eb799228c1390e87468 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 29 Jul 2021 15:30:13 +0300 Subject: [PATCH] Fix window move by title on macOS. --- Telegram/SourceFiles/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 97ce78c9ae..819e47093e 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -113,7 +113,6 @@ MainWindow::MainWindow(not_null controller) Ui::ForceFullRepaint(this); }, lifetime()); - setAttribute(Qt::WA_NoSystemBackground); setAttribute(Qt::WA_OpaquePaintEvent); } @@ -227,6 +226,8 @@ void MainWindow::finishFirstShow() { ) | rpl::start_with_next([=] { Ui::Tooltip::Hide(); }, lifetime()); + + setAttribute(Qt::WA_NoSystemBackground); } void MainWindow::clearWidgetsHook() {