Hello, Is there a way of testing the pointer for being already grabbed? I know I can call XGrabPointer(), check the result and then XUngrabPointer() if necessary. But this generates EnterNotify and LeaveNotify events which I don't want. Are there any other solutions? Regards, Piotr Dąbrowski