Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!keysec!nancy!dave From: dave@nancy.UUCP (Dave Harris) Newsgroups: comp.windows.x Subject: XGrabKeyboard and event handling Keywords: XGrabKeyboard, event handling, Xlib Message-ID: <198@nancy.UUCP> Date: 6 Oct 89 15:13:49 GMT Reply-To: dave@nancy.UUCP (Dave Harris) Organization: American Systems Corporation, Chantilly, VA Lines: 18 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.