From 2827ea651018dd4ebfbb4b0ef95b552daefd01b1 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Mon, 16 Mar 2026 11:17:33 +0200 Subject: [PATCH] Use correct signature for D-Bus PropertiesChanged signal handler Most importantly, fixes the confusion about the first argument which is a name of a D-Bus interface, not a "bus name". --- libinput-gestures | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libinput-gestures b/libinput-gestures index 0fad10f..cb61ff7 100755 --- a/libinput-gestures +++ b/libinput-gestures @@ -784,10 +784,14 @@ def dbus_listener() -> None: "Listen on DBus" DBusGMainLoop(set_as_default=True) - def proc(busname: str, vals: dict[str, str], _) -> None: + def proc( + interface_name: str, + changed_properties: dict[str, str], + invalidated_properties: list[str], + ) -> None: global session_locked - if busname == 'org.freedesktop.login1.Session': - if (val := vals.get('LockedHint')) is not None: + if interface_name == 'org.freedesktop.login1.Session': + if (val := changed_properties.get('LockedHint')) is not None: session_locked = bool(val) # Listen to get session locked state