Thanks for looking into this. It seems there is a bug in python3-xlib? https://github.com/LiuLang/python3-xlib/issues/6