5 Star 0 Fork 6

src-openEuler/kylin-display-switch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Touch-hotkeys-touch-pad-without-customized-driver.patch 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
From 2f4033cf0d53323a70fbbae1d45ee9a82cf4e1d2 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Tue, 12 Jul 2022 14:06:29 +0800
Subject: [PATCH] Touch hotkeys touch pad without customized driver
---
daemon/kmdaemon.cpp | 7 ++++++-
debian/changelog | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/daemon/kmdaemon.cpp b/daemon/kmdaemon.cpp
index 868255f..de12c4a 100644
--- a/daemon/kmdaemon.cpp
+++ b/daemon/kmdaemon.cpp
@@ -491,7 +491,12 @@ void KMDaemon::touchpadToggle(){
XDeviceInfo deviceinfo = deviceinfos[i];
if (deviceinfo.type != XInternAtom (display, XI_TOUCHPAD, False)){
- continue;
+ if (deviceinfo.type == XInternAtom(display, XI_MOUSE, False) && strstr(deviceinfo.name, "PS\/2")){
+
+ } else {
+ continue;
+ }
+
}
prop = XInternAtom (display, "Device Enabled", False);
diff --git a/debian/changelog b/debian/changelog
index b9f4c8b..e4113af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+kylin-display-switch (3.0.13kylin18~rc1) v101; urgency=medium
+
+ * ChangeDesc1: 适配PS/2触摸板没有厂商定制驱动情况下的触摸板热键
+ * ChangeDesc2: quilt -> native
+
+ -- hebing <hebing@kylinos.cn> Mon, 21 Jun 2021 16:51:24 +0800
+
kylin-display-switch (3.0.13-1) focal; urgency=medium
* New upstream release.
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/kylin-display-switch.git
git@gitee.com:src-openeuler/kylin-display-switch.git
src-openeuler
kylin-display-switch
kylin-display-switch
master

搜索帮助