Code: while (!quit) { XSetInputFocus( x_display, root, RevertToParent, CurrentTime); XSetInputFocus( x_display, win, RevertToParent, CurrentTime); XFlush( x_display ); while(XPending( x_display )) { ...
while (!quit) { XSetInputFocus( x_display, root, RevertToParent, CurrentTime); XSetInputFocus( x_display, win, RevertToParent, CurrentTime); XFlush( x_display ); while(XPending( x_display )) { ...