[comp.windows.x] XGrabKeyboard and event handling

dave@nancy.UUCP (Dave Harris) (10/06/89)

	I need some direction on using XGrabKeyboard & an event handler.
	the situation is:
	I am writing an X client that is running on a server with one other X
client.  the two of us are part of a multi-process simulation.  This simulation
is running on a dual monitor server, which uses two different graphics cards.
The other client will have the mouse through out the simulation, I will have
the keyboard.  When the other client needs keyboard input I will give it to him
using non X IPC, we are not using properties, because the other processes are
not X clients.  
	The question is: Can I use XGrabKeyboard with an event handler, and how
	do I do this without using XUngrabKeyboard.  Right now I am handling
	expose events and keyboard events.  Do I need to take the keyboard
	events out of my event handler and use XCheckMaskEvent to get my 
	keyboard events, along with XGrabKeyboard and XUngrabKeyboard.  I
	would prefer to use the event handler.

Please respond using email.