From ebf8a20d0dd71729df32e82117515ac98ae2ba67 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 18 Aug 2020 20:17:59 +0400 Subject: [PATCH] Fix main window drag by title on macOS. --- Telegram/SourceFiles/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 14573a41f..f09419b4d 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -114,6 +114,8 @@ MainWindow::MainWindow(not_null controller) if (Platform::WindowsNeedShadow()) { setAttribute(Qt::WA_TranslucentBackground); + } else { + setAttribute(Qt::WA_OpaquePaintEvent); } }