From 9622a6a043f38d18dbbbd8b71fc887233a72a718 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Fri, 7 Mar 2025 18:29:17 +0300 Subject: [PATCH] ratbagd.py: sync with libratbag Fixes https://github.com/libratbag/piper/issues/1026. --- piper/ratbagd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/piper/ratbagd.py b/piper/ratbagd.py index bd66b5f..d5b31d1 100644 --- a/piper/ratbagd.py +++ b/piper/ratbagd.py @@ -742,10 +742,10 @@ class RatbagdResolution(_RatbagdDBus): @staticmethod def _convert_resolution_from_dbus( - res: Union[int, Tuple[int, int]] + res: Union[int, Tuple[int, int]], ) -> Union[Tuple[int], Tuple[int, int]]: """ - Convert resolution from what D-Bus API retuns - either an int or a tuple of two ints, to a tuple of either one or two ints. + Convert resolution from what D-Bus API returns - either an int or a tuple of two ints, to a tuple of either one or two ints. """ if isinstance(res, int): return (res,) @@ -1003,8 +1003,8 @@ class RatbagdButton(_RatbagdDBus): class RatbagdMacro(GObject.Object): """Represents a button macro. Note that it uses keycodes as defined by - linux/input.h and not those used by X.Org or any other higher layer such as - Gdk.""" + linux/input-event-codes.h and not those used by X.Org or any other higher + layer such as Gdk.""" # Both a key press and release. _MACRO_KEY = 1000