shadow: add X11 cursor monitoring