From 2f4033cf0d53323a70fbbae1d45ee9a82cf4e1d2 Mon Sep 17 00:00:00 2001 From: peijiankang 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 Mon, 21 Jun 2021 16:51:24 +0800 + kylin-display-switch (3.0.13-1) focal; urgency=medium * New upstream release. -- 2.33.0