Touch hotkeys touch pad without customized driver
This commit is contained in:
parent
92e4bf203f
commit
8ac32aa0e0
46
0001-Touch-hotkeys-touch-pad-without-customized-driver.patch
Normal file
46
0001-Touch-hotkeys-touch-pad-without-customized-driver.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@ -1,23 +1,25 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: kylin-display-switch
|
Name: kylin-display-switch
|
||||||
Version: 3.0.13
|
Version: 3.0.13
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Gui tool for display switching
|
Summary: Gui tool for display switching
|
||||||
License: GPL-3
|
License: GPL-3
|
||||||
URL: https://github.com/ukui/kylin-display-switch
|
URL: https://github.com/ukui/kylin-display-switch
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRequires: python3-rpm-macros
|
Patch1: 0001-Touch-hotkeys-touch-pad-without-customized-driver.patch
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: python3-rpm-macros
|
||||||
BuildRequires: libxcb-devel
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: xcb-util-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libxcb-devel
|
||||||
BuildRequires: libXtst-devel
|
BuildRequires: xcb-util-devel
|
||||||
BuildRequires: gsettings-qt-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: mate-desktop-devel
|
BuildRequires: libXtst-devel
|
||||||
BuildRequires: kf5-kwindowsystem-devel
|
BuildRequires: gsettings-qt-devel
|
||||||
BuildRequires: libkscreen-qt5-devel
|
BuildRequires: mate-desktop-devel
|
||||||
BuildRequires: libxkbcommon-devel
|
BuildRequires: kf5-kwindowsystem-devel
|
||||||
|
BuildRequires: libkscreen-qt5-devel
|
||||||
|
BuildRequires: libxkbcommon-devel
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -30,6 +32,7 @@ BuildRequires: libxkbcommon-devel
|
|||||||
%prep
|
%prep
|
||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
%build
|
%build
|
||||||
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-display-switch.pro
|
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-display-switch.pro
|
||||||
%{make_build}
|
%{make_build}
|
||||||
@ -58,6 +61,9 @@ make INSTALL_ROOT=%{buildroot} install
|
|||||||
%{_datadir}/glib-2.0/schemas/org.ukui.kds.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.ukui.kds.gschema.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 12 2022 peijiankang <tanyulong@kylinos.cn> - 3.0.13-2
|
||||||
|
- Touch hotkeys touch pad without customized driver
|
||||||
|
|
||||||
* Wed Mar 02 2022 tanyulong <tanyulong@kylinos.cn> - 3.0.13-1
|
* Wed Mar 02 2022 tanyulong <tanyulong@kylinos.cn> - 3.0.13-1
|
||||||
- update upstream version 3.0.13
|
- update upstream version 3.0.13
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user