Use Platform::IsWayland from lib_base

This commit is contained in:
Ilya Fedin 2020-06-03 09:05:13 +04:00 committed by John Preston
parent e27395cf18
commit 6451ae5074

View file

@ -8,6 +8,7 @@
#include "base/flat_set.h"
#include "ui/ui_log.h"
#include "base/platform/base_platform_info.h"
#include <QtCore/QPoint>
#include <QtWidgets/QApplication>
@ -22,7 +23,7 @@ bool IsApplicationActive() {
}
bool TranslucentWindowsSupported(QPoint globalPosition) {
if (QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive)) {
if (::Platform::IsWayland()) {
return true;
}
if (const auto native = QGuiApplication::platformNativeInterface()) {