View Single Post
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#24
Originally Posted by misiak View Post
Code:
while (!quit) {
XSetInputFocus( x_display, root, RevertToParent, CurrentTime);
XSetInputFocus( x_display, win, RevertToParent, CurrentTime);
XFlush( x_display );
while(XPending( x_display )) { ...

Argh, you don't need the above. Please set the proper WM_HINTS (the input hint at least), read http://tronche.com/gui/x/xlib/ICC/cl.../wm-hints.html