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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user