diff --git a/panel/lxqtpanelapplication.cpp b/panel/lxqtpanelapplication.cpp index 1970204ac..fa7281e06 100644 --- a/panel/lxqtpanelapplication.cpp +++ b/panel/lxqtpanelapplication.cpp @@ -263,7 +263,7 @@ void LXQtPanelApplicationPrivate::loadBackend() } } - if ( preferredBackend.isEmpty() && xdgCurrentDesktops.contains( QStringLiteral("wlroots") ) ) + if ( preferredBackend.isEmpty() && xdgSessionType == QStringLiteral("wayland") ) ) { qDebug() << "Specialized backend unavailable. Falling back to generic wlroots"; preferredBackend = QStringLiteral("wlroots");