wrap grab_pointer and adapt pyxtrlock accordingly