From 5cc4066b6590bd145ce445fb1c77083014d527b3 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 2 Oct 2020 04:39:31 +0400 Subject: [PATCH] Don't change window flags in Window::MainWindow::recountGeometryConstraints --- Telegram/SourceFiles/window/main_window.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index fa177a3e08..6c5fe237e6 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -377,12 +377,6 @@ 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(); updateControlsGeometry();