2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Use new methods from lib_ui

This commit is contained in:
Ilya Fedin
2021-02-19 08:26:46 +04:00
committed by John Preston
parent f1ee5b5704
commit 15d18077b8
22 changed files with 31 additions and 670 deletions

View File

@@ -346,7 +346,7 @@ HitTestResult MainWindow::hitTest(const QPoint &p) const {
bool MainWindow::hasShadow() const {
const auto center = geometry().center();
return Platform::WindowsNeedShadow()
return Ui::Platform::WindowExtentsSupported()
&& Ui::Platform::TranslucentWindowsSupported(center)
&& _title;
}