Wayland always support compositing
This commit is contained in:
parent
8a1aeb22d8
commit
ef31d05da5
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ bool IsApplicationActive() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
||||||
|
if (QGuiApplication::platformName().startsWith(qsl("wayland"), Qt::CaseInsensitive)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
||||||
if (const auto desktop = QApplication::desktop()) {
|
if (const auto desktop = QApplication::desktop()) {
|
||||||
const auto index = desktop->screenNumber(globalPosition);
|
const auto index = desktop->screenNumber(globalPosition);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue