Skip to content

Commit

Permalink
fix: remove kwayland-shell env
Browse files Browse the repository at this point in the history
remove kwayland-shell env

Log: remove kwayland-shell env
  • Loading branch information
lzwind committed Nov 11, 2024
1 parent 422f29c commit b066deb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion arm64/linglong.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
deepin-draw (6.5.4) unstable; urgency=medium

* remove kwayland-shell env

-- Liu zheng <liuzheng@uniontech.com> Mon, 11 Nov 2024 11:00:21 +0800

deepin-draw (6.5.3) unstable; urgency=medium

* chore: Update linglong build script.
Expand Down
2 changes: 1 addition & 1 deletion linglong.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 0 additions & 1 deletion src/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 0 additions & 5 deletions src/deepin-draw/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b066deb

Please sign in to comment.