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