Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package keyd for openSUSE:Factory checked in 
at 2023-03-22 22:31:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/keyd (Old)
 and      /work/SRC/openSUSE:Factory/.keyd.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "keyd"

Wed Mar 22 22:31:20 2023 rev:2 rq:1073736 version:2.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/keyd/keyd.changes        2022-09-12 
19:07:10.830356268 +0200
+++ /work/SRC/openSUSE:Factory/.keyd.new.31432/keyd.changes     2023-03-22 
22:32:08.914648062 +0100
@@ -1,0 +2,6 @@
+Wed Mar 22 09:47:20 UTC 2023 - Michael Pujos <[email protected]>
+
+- added upstream patch fix-udev-tablet.patch to address the virtual
+pointer being treated as a tablet, resulting in mouse pointer not working
+
+-------------------------------------------------------------------

New:
----
  fix-udev-tablet.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ keyd.spec ++++++
--- /var/tmp/diff_new_pack.IrPrf7/_old  2023-03-22 22:32:09.338650195 +0100
+++ /var/tmp/diff_new_pack.IrPrf7/_new  2023-03-22 22:32:09.342650215 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package keyd
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,10 +24,11 @@
 License:        MIT
 URL:            https://github.com/rvaiya/keyd
 Source:         
%{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-v%{version}.tar.gz
+Patch:          fix-udev-tablet.patch
 BuildRequires:  gcc
 Requires:       python3-xlib
-Requires(postun): sed
-Requires(postun): shadow
+Requires(postun):sed
+Requires(postun):shadow
 Requires(pre):  shadow
 %systemd_ordering
 
@@ -40,7 +41,7 @@
 which remaps keys using kernel level input primitives (evdev, uinput).
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 %make_build

++++++ fix-udev-tablet.patch ++++++
>From 0fb86d3a95f0c91a4266391d05158cfd5dd4500f Mon Sep 17 00:00:00 2001
From: Raheman Vaiya <[email protected]>
Date: Mon, 6 Mar 2023 17:54:51 -0500
Subject: [PATCH] Fix mouse buttons (#441)

The following change in udev seems to incorrectly identify the virtual
pointer as a 'tablet pad'.

https://github.com/systemd/systemd/commit/0855ce6772#diff-e3c18b2fc4f50acbb9f2d66a1daf229fde99a5c8785f17aa6f69e6a9c41ae2c7R261

This patch removes the BTN_[0-9] capability from the virtual pointer (which is
presently unused) to avoid the issue. It is unclear if this behaviour should
be considered pathological in udev, since I can't find any documentation which
suggests it is illegitimate for non tablet devices to make use of these codes.
---
 src/vkbd/uinput.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/vkbd/uinput.c b/src/vkbd/uinput.c
index d93282a..992ba97 100644
--- a/src/vkbd/uinput.c
+++ b/src/vkbd/uinput.c
@@ -124,9 +124,6 @@ static int create_virtual_pointer(const char *name)
        for (code = BTN_LEFT; code <= BTN_TASK; code++)
                ioctl(fd, UI_SET_KEYBIT, code);
 
-       for (code = BTN_0; code <= BTN_9; code++)
-               ioctl(fd, UI_SET_KEYBIT, code);
-
        udev.id.bustype = BUS_USB;
        udev.id.vendor = 0x0FAC;
        udev.id.product = 0x1ADE;

Reply via email to