From b066deb3947bc484482bf53e5e7e48ea35196259 Mon Sep 17 00:00:00 2001 From: Liu Zheng Date: Mon, 11 Nov 2024 11:01:07 +0800 Subject: [PATCH] fix: remove kwayland-shell env remove kwayland-shell env Log: remove kwayland-shell env --- arm64/linglong.yaml | 2 +- debian/changelog | 6 ++++++ linglong.yaml | 2 +- src/application.cpp | 8 -------- src/application.h | 1 - src/deepin-draw/main.cpp | 5 ----- 6 files changed, 8 insertions(+), 16 deletions(-) diff --git a/arm64/linglong.yaml b/arm64/linglong.yaml index 3e8f038fb..848a13338 100644 --- a/arm64/linglong.yaml +++ b/arm64/linglong.yaml @@ -7,7 +7,7 @@ version: '1' package: id: org.deepin.draw name: deepin-draw - version: 6.5.3.1 + version: 6.5.4.1 kind: app description: | Draw for UOS diff --git a/debian/changelog b/debian/changelog index 09807675b..c0fa370c6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-draw (6.5.4) unstable; urgency=medium + + * remove kwayland-shell env + + -- Liu zheng Mon, 11 Nov 2024 11:00:21 +0800 + deepin-draw (6.5.3) unstable; urgency=medium * chore: Update linglong build script. diff --git a/linglong.yaml b/linglong.yaml index 5ea467e1e..dcf3312ce 100644 --- a/linglong.yaml +++ b/linglong.yaml @@ -7,7 +7,7 @@ version: '1' package: id: org.deepin.draw name: deepin-draw - version: 6.5.3.1 + version: 6.5.4.1 kind: app description: | Draw for UOS diff --git a/src/application.cpp b/src/application.cpp index 82c1390fa..623edb6d4 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -351,14 +351,6 @@ bool Application::isWaylandPlatform() return true; } -/** - * @return 返回当前桌面环境为 Treeland - */ -bool Application::isTreeland() -{ - return qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == QStringLiteral("TreeLand"); -} - bool Application::isTabletSystemEnvir() { //#if (DTK_VERSION > DTK_VERSION_CHECK(5, 5, 0, 0)) diff --git a/src/application.h b/src/application.h index 7bc6726e5..b9ed35ee6 100644 --- a/src/application.h +++ b/src/application.h @@ -166,7 +166,6 @@ class Application : public QObject static void setWidgetAccesibleName(QWidget *w, const QString &name); static bool isWaylandPlatform(); - static bool isTreeland(); static bool isTabletSystemEnvir(); diff --git a/src/deepin-draw/main.cpp b/src/deepin-draw/main.cpp index 11a69ab2d..2adb3c539 100644 --- a/src/deepin-draw/main.cpp +++ b/src/deepin-draw/main.cpp @@ -73,11 +73,6 @@ int main(int argc, char *argv[]) DWIDGET_INIT_RESOURCE(); #endif - if (Application::isWaylandPlatform() && !Application::isTreeland()) { - //添加kwayland-shell,修改了窗口顶部栏无右键菜单 - qputenv("QT_WAYLAND_SHELL_INTEGRATION", "kwayland-shell"); - } - #ifdef LINK_DRAWBASELIB_STATIC Q_INIT_RESOURCE(drawBaseRes); Q_INIT_RESOURCE(frameRes);