preliminary support for sway/wlroots compositors

This commit is contained in:
nullobsi
2021-02-01 15:45:51 -08:00
committed by borgmanJeremy
parent 2ee76addbd
commit 7a18dc096a
6 changed files with 120 additions and 2 deletions

View File

@@ -44,7 +44,9 @@ DesktopInfo::WM DesktopInfo::windowManager()
Qt::CaseInsensitive) ||
!GNOME_DESKTOP_SESSION_ID.isEmpty()) {
res = DesktopInfo::GNOME;
} else if (!KDE_FULL_SESSION.isEmpty() ||
} else if (XDG_CURRENT_DESKTOP.contains(QLatin1String("sway"), Qt::CaseInsensitive)) {
res = DesktopInfo::SWAY;
}else if (!KDE_FULL_SESSION.isEmpty() ||
DESKTOP_SESSION == QLatin1String("kde-plasma")) {
res = DesktopInfo::KDE;
}