10 Star 0 Fork 1

src-anolis-dde/dde-kwin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-feat-close-judge-XDG_SESSION_TYPE.patch 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
yangxianzhao 提交于 2023-07-03 14:53 . Update to Anolis 8.9
From 4b99c1e34be05b732eee277695292d564bbfae8a Mon Sep 17 00:00:00 2001
From: leeffo <leeffo@yeah.net>
Date: Wed, 8 Feb 2023 11:13:50 +0800
Subject: [PATCH] feat: close judge XDG_SESSION_TYPE
---
deepin-wm-dbus/deepinwmfaker.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/deepin-wm-dbus/deepinwmfaker.cpp b/deepin-wm-dbus/deepinwmfaker.cpp
index 4d76d1f..4869c38 100644
--- a/deepin-wm-dbus/deepinwmfaker.cpp
+++ b/deepin-wm-dbus/deepinwmfaker.cpp
@@ -356,11 +356,11 @@ DeepinWMFaker::DeepinWMFaker(QObject *parent)
auto e = QProcessEnvironment::systemEnvironment();
QString XDG_SESSION_TYPE = e.value(QStringLiteral("XDG_SESSION_TYPE"));
- if (XDG_SESSION_TYPE != QLatin1String("x11")) {
- for (auto iter = WaylandDeepinWMKWinAccelsMap.begin(); iter != WaylandDeepinWMKWinAccelsMap.end(); iter++) {
- AllDeepinWMKWinAccelsMap.insert(iter.key(), iter.value());
- }
- }
+ //if (XDG_SESSION_TYPE != QLatin1String("x11")) {
+ // for (auto iter = WaylandDeepinWMKWinAccelsMap.begin(); iter != WaylandDeepinWMKWinAccelsMap.end(); iter++) {
+ // AllDeepinWMKWinAccelsMap.insert(iter.key(), iter.value());
+ // }
+ //}
}
DeepinWMFaker::~DeepinWMFaker()
--
2.20.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-dde/dde-kwin.git
git@gitee.com:src-anolis-dde/dde-kwin.git
src-anolis-dde
dde-kwin
dde-kwin
a8

搜索帮助