diff --git a/debian/changelog b/debian/changelog index 3288e10..d6f106d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-picker (6.0.3) unstable; urgency=medium + + *rmove kwayland-shell + + -- Liu zheng Wed, 06 Nov 2024 15:38:45 +0800 + deepin-picker (6.0.2) unstable; urgency=medium * adapt treeland diff --git a/src/main.cpp b/src/main.cpp index 089be62..2ea498a 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,10 +22,6 @@ DWIDGET_USE_NAMESPACE -bool isTreeland() -{ - return qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == QStringLiteral("TreeLand"); -} int main(int argc, char *argv[]) { @@ -35,12 +31,6 @@ int main(int argc, char *argv[]) // Load DTK xcb plugin. auto e = QProcessEnvironment::systemEnvironment(); - QString XDG_SESSION_TYPE = e.value(QStringLiteral("XDG_SESSION_TYPE")); - QString WAYLAND_DISPLAY = e.value(QStringLiteral("WAYLAND_DISPLAY")); - - if ((XDG_SESSION_TYPE == QLatin1String("wayland") || WAYLAND_DISPLAY.contains(QLatin1String("wayland"), Qt::CaseInsensitive)) && !isTreeland()) { - qputenv("QT_WAYLAND_SHELL_INTEGRATION", "kwayland-shell"); - } // Init attributes. const char *descriptionText = QT_TRANSLATE_NOOP(