Testing the pointer for being already grabbed without calling XGrabPointer()?

2011-01-13 Thread Piotr DÄ…browski
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

Re: Testing the pointer for being already grabbed without calling XGrabPointer()?

2011-01-13 Thread Piotr DÄ…browski
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