Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xdo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
4 changes: 2 additions & 2 deletions xdo/xdo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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__ = """\
Expand Down