У меня подозрение, что неправильно передаётся поинтер. Пробовал менять типы на POINTER и c_char_p, не помогает
from xdo import Xdo
win_id = xdo.get_window_at_mouse()
what = "TEST"
xdo.enter_text_window(win_id, what)
Traceback (most recent call last):
File "xdo_test.py", line 23, in <module>
xdo.enter_text_window(ff_win_id, what)
File "/usr/lib/python3.7/site-packages/xdo/__init__.py", line 262, in enter_text_window
return _libxdo.xdo_enter_text_window(self._xdo, window, string, delay)
ctypes.ArgumentError: argument 3: <class 'TypeError'>: wrong type
public python class: https://github.com/rshk/python-libxdo/blob/master/xdo/__init__.py#L247
private python: https://github.com/rshk/python-libxdo/blob/master/xdo/xdo.py#L593
shared C library: https://github.com/jordansissel/xdotool/blob/master/xdo.h#L357