I'm putting together a mouselook interface where I need to warp the pointer back to the center of the screen whenever it's moved.Problem is that using XWarpPointer causes another MotionNotify event(as if the user moved the mouse to the center of the window) which then re-warps the pointer etc.I need to tell the XServer not to add events to the queue when I issue the XWarpPointer command.Anybody knows how to do that?I've tried XSelectInput But I have problems when I move the mouse with a button pressed so I thought this might not be the way to go.I can't seem to find anything else in the Xlib man pages though.



