代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。