use XGrabKeyboard(...)

nikita <[email protected]>
Newsgroups gmane.comp.xfree86.expert
Message-ID <[email protected]>
I have KDE 3,X 4 and the following code

.....

  XSelectInput ( prDisplay, nWnd, ExposureMask | KeyPressMask );


  XGrabKeyboard (prDisplay, nWnd, True, GrabModeSync, GrabModeSync, 
CurrentTime);


  XMapWindow ( prDisplay, nWnd );



  while ( 1 ) {
    XNextEvent ( prDisplay, &rEvent );

.....

But my application has not recieved any key events in focus out
Why do it?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.