930N/A- * The GrabKeyboard here is needed only because of
930N/A- * a bug in the R3 server -- the keyboard is grabbed on
930N/A- * the root window, and the server won't dispatch events
930N/A- * to the focus window unless the focus window is a ancestor
930N/A- * of the grab window. Bug in server already found and fixed,
930N/A- * compatibility until at least R4.
930N/A- if (XGrabKeyboard (XtDisplay (w), XtWindow (w), False, GrabModeAsync,
930N/A- GrabModeAsync, CurrentTime) != GrabSuccess)
930N/A- XSetInputFocus (XtDisplay (w), XtWindow (w),
930N/A- RevertToPointerRoot, CurrentTime);
930N/A+ XSetInputFocus (XtDisplay (w), XtWindow (w),
930N/A+ RevertToPointerRoot, CurrentTime);
930N/A /* Returns 0 on success, -1 on failure */