From 5712b4257e99c67b2e88963b221f9b73a8c491e5 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 11 Apr 2024 19:34:08 +0200 Subject: [PATCH] Pointer: Provide data property. Closes #173 --- wlroots/wlr_types/pointer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wlroots/wlr_types/pointer.py b/wlroots/wlr_types/pointer.py index 63d0c16c..68280576 100644 --- a/wlroots/wlr_types/pointer.py +++ b/wlroots/wlr_types/pointer.py @@ -6,7 +6,7 @@ import enum 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 ButtonState, InputDevice @@ -27,7 +27,7 @@ class AxisOrientation(enum.IntEnum): HORIZONTAL = lib.WLR_AXIS_ORIENTATION_HORIZONTAL -class Pointer(Ptr): +class Pointer(PtrHasData): def __init__(self, ptr) -> None: self._ptr = ptr