Use Platform::IsWayland from lib_base
This commit is contained in:
parent
e27395cf18
commit
6451ae5074
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include "base/flat_set.h"
|
#include "base/flat_set.h"
|
||||||
#include "ui/ui_log.h"
|
#include "ui/ui_log.h"
|
||||||
|
#include "base/platform/base_platform_info.h"
|
||||||
|
|
||||||
#include <QtCore/QPoint>
|
#include <QtCore/QPoint>
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
|
|
@ -22,7 +23,7 @@ bool IsApplicationActive() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
||||||
if (QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive)) {
|
if (::Platform::IsWayland()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue