From 4f524a9c76e596f4022ca72d4ac0b164a227a76f Mon Sep 17 00:00:00 2001 From: jackyzy823 Date: Thu, 29 Sep 2022 14:25:49 +0200 Subject: [PATCH] fix typos --- xdo/__init__.py | 2 +- xdo/xdo.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xdo/__init__.py b/xdo/__init__.py index 8ccb36e..d03ddb9 100644 --- a/xdo/__init__.py +++ b/xdo/__init__.py @@ -214,7 +214,7 @@ def wait_for_mouse_move_to(self, dest_x, dest_y): :param dest_x: the X position you expect the mouse to move to :param dest_y: the Y position you expect the mouse to move to """ - _libxdo.xdo_wait_for_mouse_move_from(self._xdo, dest_x, dest_y) + _libxdo.xdo_wait_for_mouse_move_to(self._xdo, dest_x, dest_y) def click_window(self, window, button): """ diff --git a/xdo/xdo.py b/xdo/xdo.py index 2a9c3c5..40b903c 100644 --- a/xdo/xdo.py +++ b/xdo/xdo.py @@ -169,7 +169,7 @@ class xdo_t(Structure): class XErrorEvent(Structure): - _fields = [ + _fields_ = [ # int type; ('type', c_int), # Display *display; /* Display the event was read from */ @@ -435,7 +435,7 @@ class Screen(Structure): # int xdo_move_mouse_relative_to_window(const xdo_t *xdo, # Window window, int x, int y); libxdo.xdo_move_mouse_relative_to_window.argtypes = ( - POINTER(xdo_t), POINTER(window_t), c_int, c_int) + POINTER(xdo_t), window_t, c_int, c_int) libxdo.xdo_move_mouse_relative_to_window.restype = c_int libxdo.xdo_move_mouse_relative_to_window.errcheck = _errcheck libxdo.xdo_move_mouse_relative_to_window.__doc__ = """\