From 99bde5b96e9a24010a19a737e0ccf67fbafa7ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Sun, 12 Feb 2023 10:01:31 +0100 Subject: [PATCH] #79 fixed doing grab without ungrab for oenabled_touchpad_pointer different to 1 --- asus_touchpad.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asus_touchpad.py b/asus_touchpad.py index 5a58961..474f7d3 100755 --- a/asus_touchpad.py +++ b/asus_touchpad.py @@ -811,7 +811,8 @@ def pressed_numpad_key(): ] try: - grab_current_slot() + if enabled_touchpad_pointer == 1: + grab_current_slot() udev.send_events(events) except OSError as e: log.warning("Cannot send press event, %s", e)