From 5fbdaacf8926b566a7d7974d7070b0d717a7f0a3 Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 13 Apr 2024 22:48:27 +0200 Subject: [PATCH] Added missing Touch.data property Touch inherits from PtrHasData instead of Ptr now. Closes #178 --- wlroots/wlr_types/touch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wlroots/wlr_types/touch.py b/wlroots/wlr_types/touch.py index 37895e71..f11f628a 100644 --- a/wlroots/wlr_types/touch.py +++ b/wlroots/wlr_types/touch.py @@ -3,14 +3,14 @@ from weakref import WeakKeyDictionary -from wlroots import Ptr, ffi, lib, str_or_none +from wlroots import Ptr, PtrHasData, ffi, lib, str_or_none from .input_device import InputDevice _weakkeydict: WeakKeyDictionary = WeakKeyDictionary() -class Touch(Ptr): +class Touch(PtrHasData): def __init__(self, ptr) -> None: self._ptr = ptr